From 5d06843fcfe8a7c620ee3b31b82edc930433ad81 Mon Sep 17 00:00:00 2001 From: Guilherme Sousa Date: Sat, 8 Oct 2022 00:16:54 +0200 Subject: Added custom node export --- editor/editor_node.cpp | 21 +++++++++++++++++++++ editor/editor_node.h | 2 ++ editor/editor_properties.cpp | 3 ++- editor/scene_tree_editor.cpp | 5 +++-- modules/gdscript/gdscript_parser.cpp | 16 +++++++++++----- 5 files changed, 39 insertions(+), 8 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index bf50efc4f9..3e50e307f2 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4392,6 +4392,27 @@ Ref EditorNode::get_class_icon(const String &p_class, const String &p return nullptr; } +bool EditorNode::is_object_of_custom_type(const Object *p_object, const StringName &p_class) { + ERR_FAIL_COND_V(!p_object, false); + + Ref