From 53a927ff9def7d4006df6a557c7347fe3a8583e1 Mon Sep 17 00:00:00 2001 From: miquelcampos Date: Fri, 19 Jul 2024 22:39:50 +0900 Subject: [PATCH] Core: fix error with bake locak to offset parent matrix, when attr are lock --- release/scripts/mgear/core/transform.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/release/scripts/mgear/core/transform.py b/release/scripts/mgear/core/transform.py index bb7f2496..60bdb076 100644 --- a/release/scripts/mgear/core/transform.py +++ b/release/scripts/mgear/core/transform.py @@ -980,9 +980,7 @@ def bake_local_to_offset_parent_matrix(node): node.setAttr("offsetParentMatrix", new_offset_matrix) # Reset local transform values to neutral - node.setAttr("scale", (1, 1, 1)) - node.setAttr("rotate", (0, 0, 0)) - node.setAttr("translate", (0, 0, 0)) + resetTransform(node) def rotate_180(axis="Y", rotation_order="XYZ", objects=None):