Commit: 5c20363e37852f2ddc80ccc5246edeecbc64d8f3
Author: Campbell Barton
Date:   Wed Aug 24 17:19:31 2022 +1000
Branches: blender-v2.93-release
https://developer.blender.org/rB5c20363e37852f2ddc80ccc5246edeecbc64d8f3

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.c

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

diff --git a/source/blender/editors/object/object_transform.c 
b/source/blender/editors/object/object_transform.c
index c768ac0696a..36874d776c0 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -921,7 +921,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);
     }
 
     Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to