MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _node_removed

Method _node_removed

editor/scene/scene_tree_editor.cpp:874–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874void SceneTreeEditor::_node_removed(Node *p_node) {
875 if (EditorNode::get_singleton()->is_exiting()) {
876 return; // Speed up exit.
877 }
878
879 if (EditorNode::get_singleton()->is_changing_scene()) {
880 return; // Switching tabs we will be destroying node cache anyway.
881 }
882
883 if (!get_scene_node()) {
884 return;
885 }
886
887 if (p_node != get_scene_node() && !get_scene_node()->is_ancestor_of(p_node)) {
888 return;
889 }
890
891 node_cache.remove(p_node);
892 _update_if_clean();
893}
894
895void SceneTreeEditor::_node_renamed(Node *p_node) {
896 if (!get_scene_node()) {

Callers

nothing calls this directly

Calls 4

is_exitingMethod · 0.80
is_changing_sceneMethod · 0.80
is_ancestor_ofMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected