diff options
author | mano-wii <germano.costa@ig.com.br> | 2020-01-07 17:52:44 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2020-01-07 17:53:00 +0300 |
commit | e665c2c89326f4b13270d0d5d5082b5368413371 (patch) | |
tree | 40b682277355c17042cb5f56c261c42527c1f161 /release/scripts/startup/bl_operators/object.py | |
parent | 0bd598d388b4d64e2d9ab4b8a84768beb30b8625 (diff) |
Fix T69314: Broken Rotation to Deltas for Quaternions
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 4 |
1 files changed, 3 insertions, 1 deletions
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() |