소스 검색

fix plugin icons not displayed

PhairZ 7 달 전
부모
커밋
16b7459cda
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      editor/editor_data.cpp

+ 2 - 2
editor/editor_data.cpp

@@ -1028,8 +1028,8 @@ 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 && !E->value.is_empty()) {
-			if (r_valid) {
+		if ((bool)E) {
+			if (r_valid && !E->value.is_empty()) {
 				*r_valid = true;
 			}
 			return E->value;