Fix frame control function to be invisible for X number of frames, instead of until frame X.

This commit is contained in:
Jennifer Taylor
2021-09-20 05:05:14 +00:00
parent 30fa4e6e1a
commit 38f8c94ed0

View File

@@ -266,6 +266,7 @@ class PlacedClip(PlacedObject):
if actual_frame is None:
print(f"WARNING: Non-integer frame {frame} to setInvisibleUntil function!")
return
actual_frame += self.frameOffset - 1
self.visible = False
if actual_frame <= 0:
actual_frame = 1