1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Store _custom_type_script meta as String

This commit is contained in:
kobewi
2025-02-12 00:51:22 +01:00
parent ad9abe841d
commit 38d0e82a35
5 changed files with 49 additions and 15 deletions

View File

@@ -4751,7 +4751,7 @@ Ref<Script> EditorNode::get_object_custom_type_base(const Object *p_object) cons
const Node *node = Object::cast_to<const Node>(p_object);
if (node && node->has_meta(SceneStringName(_custom_type_script))) {
return node->get_meta(SceneStringName(_custom_type_script));
return PropertyUtils::get_custom_type_script(node);
}
Ref<Script> scr = p_object->get_script();