Skip to content

Commit

Permalink
[SM64] Fix #352 regression (#425)
Browse files Browse the repository at this point in the history
It is not enough to rely on an object's location and rotation as we need a relative position
  • Loading branch information
Lilaa3 authored Aug 22, 2024
1 parent b99391e commit 8137701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast64_internal/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ def store_original_mtx():
for obj in yield_children(active_obj):
# negative scales produce a rotation, we need to remove that since
# scales will be applied to the transform for each object
obj["original_mtx"] = Matrix.LocRotScale(obj.location, obj.rotation_euler, None)
loc, rot, _scale = obj.matrix_local.decompose()
obj["original_mtx"] = Matrix.LocRotScale(loc, rot, None)


def rotate_bounds(bounds, mtx: mathutils.Matrix):
Expand Down

0 comments on commit 8137701

Please sign in to comment.