fix: transform offset for object animated with a curve constraint

Related to #214
This commit is contained in:
Swann 2021-07-06 14:29:20 +02:00
parent 963a551a1e
commit d433e8f241
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -620,10 +620,8 @@ class BlObject(ReplicatedDatablock):
transform = data.get('transforms', None)
if transform:
datablock.matrix_parent_inverse = mathutils.Matrix(
transform['matrix_parent_inverse'])
datablock.matrix_parent_inverse = mathutils.Matrix(transform['matrix_parent_inverse'])
datablock.matrix_basis = mathutils.Matrix(transform['matrix_basis'])
datablock.matrix_local = mathutils.Matrix(transform['matrix_local'])
@staticmethod