Make 2d area composition nodes work on video models.

This commit is contained in:
comfyanonymous 2025-03-02 08:19:16 -05:00
parent 6f81cd8973
commit 9af6320ec9

View File

@ -34,6 +34,9 @@ def get_area_and_mult(conds, x_in, timestep_in):
return None return None
if 'area' in conds: if 'area' in conds:
area = list(conds['area']) area = list(conds['area'])
while (len(area) // 2) < len(dims):
area = [2147483648] + area[:len(area) // 2] + [0] + area[len(area) // 2:]
if 'strength' in conds: if 'strength' in conds:
strength = conds['strength'] strength = conds['strength']