Script editor help: Prevent loading empty instances from layout

(cherry picked from commit 71f6c96288)
This commit is contained in:
Rémi Verschelde 2017-07-02 12:31:08 +02:00
parent 026c580399
commit 47307453f7
1 changed files with 3 additions and 0 deletions

View File

@ -2317,6 +2317,9 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
for (int i = 0; i < helps.size(); i++) { for (int i = 0; i < helps.size(); i++) {
String path = helps[i]; String path = helps[i];
if (path == "") { // invalid, skip
continue;
}
_help_class_open(path); _help_class_open(path);
} }