mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2025-02-07 22:41:26 +01:00
Replaced explicit quaternion conjugation with call to conjugated
function
This commit is contained in:
parent
4937f8f779
commit
7c9d13686f
@ -96,10 +96,7 @@ def build_psk(context, options: PskBuildOptions) -> Psk:
|
|||||||
psk_bone.parent_index = 0
|
psk_bone.parent_index = 0
|
||||||
|
|
||||||
if bone.parent is not None:
|
if bone.parent is not None:
|
||||||
rotation = bone.matrix.to_quaternion()
|
rotation = bone.matrix.to_quaternion().conjugated()
|
||||||
rotation.x = -rotation.x
|
|
||||||
rotation.y = -rotation.y
|
|
||||||
rotation.z = -rotation.z
|
|
||||||
quat_parent = bone.parent.matrix.to_quaternion().inverted()
|
quat_parent = bone.parent.matrix.to_quaternion().inverted()
|
||||||
parent_head = quat_parent @ bone.parent.head
|
parent_head = quat_parent @ bone.parent.head
|
||||||
parent_tail = quat_parent @ bone.parent.tail
|
parent_tail = quat_parent @ bone.parent.tail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user