diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-07-02 12:31:08 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-07-02 12:31:34 +0200 |
commit | 71f6c962884801371ce85caaebdf12fcac0f090d (patch) | |
tree | 380220c1a4d2366a6b50db8d9ee44ef720e36d28 /editor/plugins | |
parent | 0ffb70f0bbfa14d9201b4349ac23911450b9d6b2 (diff) |
Script editor help: Prevent loading empty instances from layout
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index a7a3242ad9..aedc96d20e 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1884,6 +1884,9 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) { for (int i = 0; i < helps.size(); i++) { String path = helps[i]; + if (path == "") { // invalid, skip + continue; + } _help_class_open(path); } |