From 42448d7587ef177c24fcc094cb67479c0314f493 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 26 Apr 2022 23:29:02 +0800 Subject: [PATCH] Fix custom class icon when it inherits from a script --- editor/editor_node.cpp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index a91b6897aa6..ee323b8f50d 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4069,25 +4069,29 @@ Ref EditorNode::get_class_icon(const String &p_class, const String &p_f ERR_FAIL_COND_V_MSG(p_class.empty(), nullptr, "Class name cannot be empty."); if (ScriptServer::is_global_class(p_class)) { - Ref icon; - Ref