Fix T69314: Broken Rotation to Deltas for Quaternions

This commit is contained in:
Germano Cavalcante 2020-01-07 11:52:44 -03:00
parent 0bd598d388
commit e665c2c893
Notes: blender-bot 2023-02-14 05:28:01 +01:00
Referenced by issue #69314, Broken Rotation to Deltas for Quaternions and Axis Angle
1 changed files with 3 additions and 1 deletions

View File

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