fix skeleton (ik) not resetting global_bone_overrides properly

fix skeleton (ik) not resetting global_bone_overrides properly
This commit is contained in:
smix8 2021-04-15 16:50:59 +02:00
parent 00d087e47d
commit fe7b624353

View file

@ -383,6 +383,7 @@ void Skeleton::_notification(int p_what) {
void Skeleton::clear_bones_global_pose_override() {
for (int i = 0; i < bones.size(); i += 1) {
bones.write[i].global_pose_override_amount = 0;
bones.write[i].global_pose_override_reset = true;
}
_make_dirty();
}