Skip to content

Commit

Permalink
mvr: Improved object transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
nrgsille76 authored Jul 23, 2024
1 parent a76ed4a commit 7d91389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def add_mvr_object(idx, node, mtx, collect, file=""):
elif ob.name in layer_collect.collection.objects:
active_layer.collection.objects.unlink(ob)
if ob.parent is None:
ob.matrix_world = world_matrix
ob.matrix_world = world_matrix @ ob.matrix_world.copy()
if ob.name not in collect.objects:
collect.objects.link(ob)
objectData.setdefault(uid, collect)
Expand Down

0 comments on commit 7d91389

Please sign in to comment.