summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-06-06 01:29:20 +0200
committerGitHub <noreply@github.com>2021-06-06 01:29:20 +0200
commit94c31ba3006b071a6fe03b29a86d0a415351a50f (patch)
treef25a24d54a7370e6f972729ea53131fb5f61f7c6 /editor/editor_node.cpp
parent7085c0d80110c4c3f90fcc12f609650144e08712 (diff)
parent8aa3c2f0918707c2243b86ac53c02c27ceb9a266 (diff)
downloadredot-engine-94c31ba3006b071a6fe03b29a86d0a415351a50f.tar.gz
Merge pull request #47872 from TwistedTwigleg/GSOC_2020_Working_Branch_2D_IK_SQUISHED
New and improved IK system for Skeleton2D - Squished
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 85d19eb747..32d6e5bce2 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -1587,6 +1587,8 @@ void EditorNode::_save_scene(String p_file, int idx) {
return;
}
+ scene->propagate_notification(NOTIFICATION_EDITOR_PRE_SAVE);
+
editor_data.apply_changes_in_editors();
List<Ref<AnimatedValuesBackup>> anim_backups;
_reset_animation_players(scene, &anim_backups);
@@ -1658,6 +1660,8 @@ void EditorNode::_save_scene(String p_file, int idx) {
} else {
_dialog_display_save_error(p_file, err);
}
+
+ scene->propagate_notification(NOTIFICATION_EDITOR_POST_SAVE);
}
void EditorNode::save_all_scenes() {