summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-12-05 13:25:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-12-05 13:26:45 -0300
commit1587f45c2551a43db2808f2c5938095e19f060d2 (patch)
treea21567931b4931de0dd05ab6f00ab6a2ab191dd2
parent03c1b6be23009ca67eb585783ec0f76d9c535c88 (diff)
Make sure the scene warning of changes may be lost is only for scenes, fixes #13970
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
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.");
}
}