Merge pull request #47923 from smix8/issue_47850_4.x

Fix Skeleton3D.clear_bones_global_pose_override() not resetting global_bone_overrides properly
This commit is contained in:
Rémi Verschelde 2021-04-16 08:45:10 +02:00 committed by GitHub
commit ba66569512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -387,6 +387,7 @@ void Skeleton3D::_notification(int p_what) {
void Skeleton3D::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();
}