From 5ca5e7d0c0ee63c78c6bd61b476ac0a82a62df46 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 (cherry picked from commit 42448d7587ef177c24fcc094cb67479c0314f493) --- 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 eff278ece7c..4a52ee065ef 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3994,25 +3994,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