From 71f6c962884801371ce85caaebdf12fcac0f090d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 2 Jul 2017 12:31:08 +0200 Subject: Script editor help: Prevent loading empty instances from layout --- editor/plugins/script_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor/plugins') 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 p_layout) { for (int i = 0; i < helps.size(); i++) { String path = helps[i]; + if (path == "") { // invalid, skip + continue; + } _help_class_open(path); } -- cgit v1.2.3