remove warnings if a script is missing and can't be opened

(cherry picked from commit d8c31e0e74)
This commit is contained in:
Juan Linietsky 2016-07-07 21:27:20 -03:00 committed by Rémi Verschelde
parent f4a5963ca9
commit 3963f89ebd
1 changed files with 2 additions and 0 deletions

View File

@ -2240,6 +2240,8 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
for(int i=0;i<scripts.size();i++) { for(int i=0;i<scripts.size();i++) {
String path = scripts[i]; String path = scripts[i];
if (!FileAccess::exists(path))
continue;
Ref<Script> scr = ResourceLoader::load(path); Ref<Script> scr = ResourceLoader::load(path);
if (scr.is_valid()) { if (scr.is_valid()) {
edit(scr); edit(scr);