Skip to content

Commit 37f9e42

Browse files
committed
Merge pull request godotengine#103143 from PhairZ/plugin-icons
Fix plugin icons not displayed
2 parents 545ca25 + 16b7459 commit 37f9e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/editor_data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,8 @@ String EditorData::script_class_get_icon_path(const String &p_class, bool *r_val
10281028
return String();
10291029
}
10301030
HashMap<StringName, String>::ConstIterator E = _script_class_icon_paths.find(current);
1031-
if ((bool)E && !E->value.is_empty()) {
1032-
if (r_valid) {
1031+
if ((bool)E) {
1032+
if (r_valid && !E->value.is_empty()) {
10331033
*r_valid = true;
10341034
}
10351035
return E->value;

0 commit comments

Comments
 (0)