From 1587f45c2551a43db2808f2c5938095e19f060d2 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 5 Dec 2017 13:25:52 -0300 Subject: Make sure the scene warning of changes may be lost is only for scenes, fixes #13970 --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 9e242b4ecd..d6c8d65193 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1495,7 +1495,7 @@ void EditorNode::_edit_current() { if (FileAccess::exists(base_path + ".import")) { editable_warning = TTR("This resource belongs to a scene that was imported, so it's not editable.\nPlease read the documentation relevant to importing scenes to better understand this workflow."); } else { - if (!get_edited_scene() || get_edited_scene()->get_filename() != base_path) { + if ((!get_edited_scene() || get_edited_scene()->get_filename() != base_path) && ResourceLoader::get_resource_type(base_path) == "PackedScene") { editable_warning = TTR("This resource belongs to a scene that was instanced or inherited.\nChanges to it will not be kept when saving the current scene."); } } -- cgit v1.2.3