Skip to content

Commit 6b8062f

Browse files
authored
Fix MaskComposite error when destination has 2 dimensions (#8915)
Fix code that is using the original `destination` input instead of the reshaped value.
1 parent b1ae412 commit 6b8062f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy_extras/nodes_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def combine(self, destination, source, x, y, operation):
247247
visible_width, visible_height = (right - left, bottom - top,)
248248

249249
source_portion = source[:, :visible_height, :visible_width]
250-
destination_portion = destination[:, top:bottom, left:right]
250+
destination_portion = output[:, top:bottom, left:right]
251251

252252
if operation == "multiply":
253253
output[:, top:bottom, left:right] = destination_portion * source_portion

0 commit comments

Comments
 (0)