fix mask logic

This commit is contained in:
Nicolas Mowen 2024-04-09 15:58:17 -06:00
parent b6ce301610
commit ad941215c1

View File

@ -359,7 +359,7 @@ class RuntimeMotionConfig(MotionConfig):
# we know if any points are > 1 then it is using the # we know if any points are > 1 then it is using the
# old native resolution coordinates # old native resolution coordinates
if mask: if mask:
if isinstance(mask, list) and any(x > "1.0" for x in mask[0]): if isinstance(mask, list) and any(x > "1.0" for x in mask[0].split(",")):
relative_masks = [] relative_masks = []
for m in mask: for m in mask:
points = m.split(",") points = m.split(",")
@ -519,7 +519,7 @@ class RuntimeFilterConfig(FilterConfig):
# we know if any points are > 1 then it is using the # we know if any points are > 1 then it is using the
# old native resolution coordinates # old native resolution coordinates
if mask: if mask:
if isinstance(mask, list) and any(x > "1.0" for x in mask[0]): if isinstance(mask, list) and any(x > "1.0" for x in mask[0].split(",")):
relative_masks = [] relative_masks = []
for m in mask: for m in mask:
points = m.split(",") points = m.split(",")