From 8960b990ec01bf3da0255aaef0bf614e26dbb229 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 26 Apr 2022 23:40:33 +0800 Subject: Fix custom class icon when it inherits from a script --- editor/editor_node.cpp | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 6f3c45727a..8d8aee1abb 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4095,22 +4095,28 @@ Ref EditorNode::get_class_icon(const String &p_class, const String &p ERR_FAIL_COND_V_MSG(p_class.is_empty(), nullptr, "Class name cannot be empty."); if (ScriptServer::is_global_class(p_class)) { - Ref icon; - Ref