diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index f31e6aba416..8135a9b9664 100644 --- a/editor/editor_data.cpp +++ b/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::ConstIterator E = _script_class_icon_paths.find(current); - if ((bool)E) { + if ((bool)E && !E->value.is_empty()) { if (r_valid) { *r_valid = true; }