mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #101450 from TokageItLab/reset-anim-skeleton
Change reset timing of the AnimationMixer and Skeleton on save
This commit is contained in:
commit
bb8001c83a
2 changed files with 9 additions and 2 deletions
|
|
@ -325,6 +325,12 @@ void Skeleton3D::_notification(int p_what) {
|
|||
update_flags = UPDATE_FLAG_POSE;
|
||||
_notification(NOTIFICATION_UPDATE_SKELETON);
|
||||
} break;
|
||||
#ifdef TOOLS_ENABLED
|
||||
case NOTIFICATION_EDITOR_PRE_SAVE: {
|
||||
force_update_all_dirty_bones();
|
||||
emit_signal(SceneStringName(skeleton_updated));
|
||||
} break;
|
||||
#endif // TOOLS_ENABLED
|
||||
case NOTIFICATION_UPDATE_SKELETON: {
|
||||
// Update bone transforms to apply unprocessed poses.
|
||||
force_update_all_dirty_bones();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue