Fix T69314: Broken Rotation to Deltas for Quaternions
This commit is contained in:
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
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue