Fix some 3D animations not getting their transforms updated per-frame.
This commit is contained in:
parent
7e70c6dad1
commit
4584cb3f45
@ -1570,7 +1570,11 @@ class SWF(TrackedCoverage, VerboseOutput):
|
|||||||
self.vprint(f"{prefix} Create object request")
|
self.vprint(f"{prefix} Create object request")
|
||||||
update_request = False
|
update_request = False
|
||||||
|
|
||||||
if flags & 0x4:
|
if flags & 0x18000004:
|
||||||
|
# Technically only flag 0x4 is the "use transform matrix" flag, but when they
|
||||||
|
# added perspective to the format, they also just made setting the TZ or the
|
||||||
|
# 3x3 transform portion of a 4x4 matrix equivalent. So if those exist, this
|
||||||
|
# implicitly is enabled.
|
||||||
self.vprint(f"{prefix} Use transform matrix")
|
self.vprint(f"{prefix} Use transform matrix")
|
||||||
projection = AP2PlaceObjectTag.PROJECTION_AFFINE
|
projection = AP2PlaceObjectTag.PROJECTION_AFFINE
|
||||||
transform_information = True
|
transform_information = True
|
||||||
|
@ -247,10 +247,6 @@ class Matrix:
|
|||||||
new.a31 = other.a31
|
new.a31 = other.a31
|
||||||
new.a32 = other.a32
|
new.a32 = other.a32
|
||||||
new.a33 = other.a33
|
new.a33 = other.a33
|
||||||
new.a41 = other.a41
|
|
||||||
new.a42 = other.a42
|
|
||||||
new.a43 = other.a43
|
|
||||||
else:
|
|
||||||
if other.__scale_set:
|
if other.__scale_set:
|
||||||
new.a = other.a
|
new.a = other.a
|
||||||
new.d = other.d
|
new.d = other.d
|
||||||
|
Loading…
Reference in New Issue
Block a user