From 122a79653557ab04f452054c486995af14988eff 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 bc1294aba..5ec1ac280 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3939,25 +3939,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