Kaynağa Gözat

Script editor help: Prevent loading empty instances from layout

Rémi Verschelde 8 yıl önce
ebeveyn
işleme
71f6c96288
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      editor/plugins/script_editor_plugin.cpp

+ 3 - 0
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++) {
 	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);
 	}
 	}