1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

-fixes disability to remove instanced nodes when reopening scene. Fixes #2610

This commit is contained in:
Juan Linietsky
2015-10-17 15:48:42 -03:00
parent 6f9631fc51
commit 85a611d1cd
2 changed files with 4 additions and 4 deletions

View File

@@ -875,7 +875,7 @@ bool SceneTreeDock::_validate_no_foreign() {
}
if (edited_scene->get_scene_instance_state().is_valid() && edited_scene->get_scene_instance_state()->find_node_by_path(edited_scene->get_path_to(E->get()))>=0) {
if (edited_scene->get_scene_inherited_state().is_valid() && edited_scene->get_scene_inherited_state()->find_node_by_path(edited_scene->get_path_to(E->get()))>=0) {
accept->get_ok()->set_text("Makes Sense!");
accept->set_text("Can't operate on nodes the current scene inherits from!");