Przeglądaj źródła

Fix Script Class Icons Not Checking Parent

Z0rb14n 7 miesięcy temu
rodzic
commit
b32a76299a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      editor/editor_data.cpp

+ 1 - 1
editor/editor_data.cpp

@@ -1023,7 +1023,7 @@ String EditorData::script_class_get_icon_path(const String &p_class, bool *r_val
 			return String();
 		}
 		HashMap<StringName, String>::ConstIterator E = _script_class_icon_paths.find(current);
-		if ((bool)E) {
+		if ((bool)E && !E->value.is_empty()) {
 			if (r_valid) {
 				*r_valid = true;
 			}