fix: align BOUNDING_BOX type with backend and target ImageCropV2 node

This commit is contained in:
Terry Jia
2026-02-01 09:21:44 -05:00
parent 544ef5bb70
commit 6348f0c53f
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ useExtensionService().registerExtension({
name: 'Comfy.ImageCrop',
async nodeCreated(node) {
if (node.constructor.comfyClass !== 'ImageCrop') return
if (node.constructor.comfyClass !== 'ImageCropV2') return
const [oldWidth, oldHeight] = node.size
node.setSize([Math.max(oldWidth, 300), Math.max(oldHeight, 450)])