1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fixed IK rotation issue

(cherry picked from commit 277696d6c5)
This commit is contained in:
Andrea Catania
2020-03-24 09:59:32 +01:00
committed by Rémi Verschelde
parent 96e381ac03
commit a51e78528f
4 changed files with 15 additions and 6 deletions

View File

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