Skip to content

Commit

Permalink
Always return copy of matrix in get_object_bind to prevent accidental…
Browse files Browse the repository at this point in the history
… modification (happened with collision export).
  • Loading branch information
Candoran2 committed Sep 9, 2023
1 parent 8e8bc06 commit c25d9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Version v0.1.01
- Fixes #599
- Fixes #600
- Add exported tangents to Bully SE.
- Always return copy for get_object_bind to prevent accidental modification.
- #592 Update to documentation
- #593 Supported export for Sid Meier's Pirates!.

Expand Down
2 changes: 1 addition & 1 deletion io_scene_niftools/utils/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_object_bind(b_obj):
return mpi.inverted() @ b_obj.matrix_basis
# just get the local matrix
else:
return b_obj.matrix_local
return b_obj.matrix_local.copy()
# Nonetype, maybe other weird stuff
return mathutils.Matrix()

Expand Down

0 comments on commit c25d9dc

Please sign in to comment.