Commit: e665c2c89326f4b13270d0d5d5082b5368413371
Author: mano-wii
Date:   Tue Jan 7 11:52:44 2020 -0300
Branches: master
https://developer.blender.org/rBe665c2c89326f4b13270d0d5d5082b5368413371

Fix T69314: Broken Rotation to Deltas for Quaternions

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

M       release/scripts/startup/bl_operators/object.py

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

diff --git a/release/scripts/startup/bl_operators/object.py 
b/release/scripts/startup/bl_operators/object.py
index c42d5970ed9..12d7984b3b2 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -743,7 +743,9 @@ class TransformsToDeltas(Operator):
     def transfer_rotation(self, obj):
         # TODO: add transforms together...
         if obj.rotation_mode == 'QUATERNION':
-            obj.delta_rotation_quaternion += obj.rotation_quaternion
+            delta = obj.delta_rotation_quaternion.copy()
+            obj.delta_rotation_quaternion = obj.rotation_quaternion
+            obj.delta_rotation_quaternion.rotate(delta)
 
             if self.reset_values:
                 obj.rotation_quaternion.identity()

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to