Merge pull request #110506 from TokageItLab/reset-mod
Fix Reset on Save corrupt poses if scene has multiple Skeletons
This commit is contained in:
commit
5ee1384cbd
2 changed files with 5 additions and 2 deletions
|
|
@ -317,11 +317,11 @@ void Skeleton3D::_notification(int p_what) {
|
|||
Bone *bonesptr = bones.ptr();
|
||||
int len = bones.size();
|
||||
|
||||
thread_local LocalVector<bool> bone_global_pose_dirty_backup;
|
||||
LocalVector<bool> bone_global_pose_dirty_backup;
|
||||
|
||||
// Process modifiers.
|
||||
|
||||
thread_local LocalVector<BonePoseBackup> bones_backup;
|
||||
LocalVector<BonePoseBackup> bones_backup;
|
||||
_find_modifiers();
|
||||
if (!modifiers.is_empty()) {
|
||||
bones_backup.resize(bones.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue