[Bf-blender-cvs] [e665c2c8932] master: Fix T69314: Broken Rotation to Deltas for Quaternions

mano-wii noreply at git.blender.org
Tue Jan 7 15:56:18 CET 2020


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()



More information about the Bf-blender-cvs mailing list