summaryrefslogtreecommitdiff
path: root/tools/editor/scene_tree_dock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/scene_tree_dock.cpp')
-rw-r--r--tools/editor/scene_tree_dock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp
index f693036bc2..3455582bbc 100644
--- a/tools/editor/scene_tree_dock.cpp
+++ b/tools/editor/scene_tree_dock.cpp
@@ -393,7 +393,7 @@ void SceneTreeDock::_notification(int p_what) {
switch(p_what) {
- case NOTIFICATION_ENTER_SCENE: {
+ case NOTIFICATION_ENTER_TREE: {
static const char* button_names[TOOL_BUTTON_MAX]={
"New",
@@ -913,7 +913,7 @@ void SceneTreeDock::_delete_confirm() {
//delete from animation
for(List<Node*>::Element *E=remove_list.front();E;E=E->next()) {
Node *n = E->get();
- if (!n->is_inside_scene() || !n->get_parent())
+ if (!n->is_inside_tree() || !n->get_parent())
continue;
fill_path_renames(n,NULL,&path_renames);
@@ -924,7 +924,7 @@ void SceneTreeDock::_delete_confirm() {
//delete for read
for(List<Node*>::Element *E=remove_list.front();E;E=E->next()) {
Node *n = E->get();
- if (!n->is_inside_scene() || !n->get_parent())
+ if (!n->is_inside_tree() || !n->get_parent())
continue;
List<Node*> owned;