diff options
author | Andrea Catania <info@andreacatania.com> | 2020-03-24 09:59:32 +0100 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2020-03-24 10:06:24 +0100 |
commit | 277696d6c50eba68ca11cf3c0988be0213e5c65d (patch) | |
tree | d0fa53e75fa1339d575d6273cbe15cbd81f9bb73 /editor/plugins | |
parent | c450d4d3bbe0733785739efc46c9c0282303e79a (diff) |
Fixed IK rotation issue
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/skeleton_ik_editor_plugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/plugins/skeleton_ik_editor_plugin.cpp b/editor/plugins/skeleton_ik_editor_plugin.cpp index b031bd71d3..418e10a0f0 100644 --- a/editor/plugins/skeleton_ik_editor_plugin.cpp +++ b/editor/plugins/skeleton_ik_editor_plugin.cpp @@ -44,10 +44,7 @@ void SkeletonIKEditorPlugin::_play() { skeleton_ik->start(); } else { skeleton_ik->stop(); - - for (int i = 0; i < skeleton_ik->get_parent_skeleton()->get_bone_count(); ++i) { - skeleton_ik->get_parent_skeleton()->set_bone_global_pose_override(i, Transform(), 0); - } + skeleton_ik->get_parent_skeleton()->clear_bones_global_pose_override(); } } |