From 4628736894203d4bb94e157ac011495da5bf8713 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Sun, 30 Jan 2022 21:31:32 +0000 Subject: [PATCH] Update instances of scenes which have been reimported. --- doc/classes/Node.xml | 3 + editor/editor_data.h | 1 - editor/editor_node.cpp | 478 ++++++++++++++++++++++++++++++- editor/editor_node.h | 35 +++ scene/main/node.cpp | 1 + scene/main/node.h | 1 + scene/resources/packed_scene.cpp | 19 ++ scene/resources/packed_scene.h | 2 + 8 files changed, 538 insertions(+), 2 deletions(-) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 02fd6dae30f..7b27f16d827 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -909,6 +909,9 @@ Notification received when the node is enabled again after being disabled. See [constant PROCESS_MODE_DISABLED]. + + Notification received when other nodes in the tree may have been removed/replaced and node pointers may require re-caching. + Notification received right before the scene with the node is saved in the editor. This notification is only sent in the Godot editor and will not occur in exported projects. diff --git a/editor/editor_data.h b/editor/editor_data.h index bce9dd345d5..5ef42da3c9c 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -203,7 +203,6 @@ public: String get_scene_type(int p_idx) const; void set_scene_path(int p_idx, const String &p_path); Ref