[Bf-blender-cvs] [62f764fad7c] blender-v3.3-release: Fix T100606: Apply object transform fails with delta quaternion rotation

Campbell Barton noreply at git.blender.org
Wed Aug 24 09:27:03 CEST 2022


Commit: 62f764fad7c3086287c4634ade3f4c2d3b40a694
Author: Campbell Barton
Date:   Wed Aug 24 17:19:31 2022 +1000
Branches: blender-v3.3-release
https://developer.blender.org/rB62f764fad7c3086287c4634ade3f4c2d3b40a694

Fix T100606: Apply object transform fails with delta quaternion rotation

Apply transform failed to clear delta quaternion & axis-angle rotation.

===================================================================

M	source/blender/editors/object/object_transform.cc

===================================================================

diff --git a/source/blender/editors/object/object_transform.cc b/source/blender/editors/object/object_transform.cc
index c612a84a631..e4f96d95173 100644
--- a/source/blender/editors/object/object_transform.cc
+++ b/source/blender/editors/object/object_transform.cc
@@ -1033,7 +1033,9 @@ static int apply_objects_internal(bContext *C,
         zero_v3(ob->rot);
         zero_v3(ob->drot);
         unit_qt(ob->quat);
+        unit_qt(ob->dquat);
         unit_axis_angle(ob->rotAxis, &ob->rotAngle);
+        unit_axis_angle(ob->drotAxis, &ob->drotAngle);
       }
     }



More information about the Bf-blender-cvs mailing list