Skip to content

Commit 4bac259

Browse files
committed
Merge pull request godotengine#101435 from YYF233333/remote_tree_fix2
Return fast for built-in class icon
2 parents c89ded2 + dcf5244 commit 4bac259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/editor_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4943,7 +4943,7 @@ Ref<Texture2D> EditorNode::get_class_icon(const String &p_class, const String &p
49434943
String script_path;
49444944
if (ScriptServer::is_global_class(p_class)) {
49454945
script_path = ScriptServer::get_global_class_path(p_class);
4946-
} else if (ResourceLoader::exists(p_class)) { // If the script is not a class_name we check if the script resource exists.
4946+
} else if (!p_class.get_extension().is_empty() && ResourceLoader::exists(p_class)) { // If the script is not a class_name we check if the script resource exists.
49474947
script_path = p_class;
49484948
}
49494949

0 commit comments

Comments
 (0)