summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-07-07 21:27:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-07-07 21:27:20 -0300
commitd8c31e0e7480906ccf230892b090e3c3cbe1b271 (patch)
treec65dbdaae754e09985191ad6c9427606c3899867 /tools/editor
parenta1d841e6f7b9df50e0f90901a79425496bf394ad (diff)
remove warnings if a script is missing and can't be opened
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index aa0f52d574..d7d495ff5d 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -2411,6 +2411,8 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
for(int i=0;i<scripts.size();i++) {
String path = scripts[i];
+ if (!FileAccess::exists(path))
+ continue;
Ref<Script> scr = ResourceLoader::load(path);
if (scr.is_valid()) {
edit(scr);