@@ -454,7 +454,7 @@ public:
454454 return ; \
455455 } \
456456 m_inherits::initialize_class (); \
457- ::ClassDB::_add_class<m_class>(); \
457+ _add_class_to_classdb ( get_class_static (), get_parent_class_static ()); \
458458 if (m_class::_get_bind_methods () != m_inherits::_get_bind_methods ()) { \
459459 _bind_methods (); \
460460 } \
@@ -499,7 +499,7 @@ protected:
499499 m_inherits::_get_property_listv (p_list, p_reversed); \
500500 } \
501501 p_list->push_back (PropertyInfo (Variant::NIL, get_class_static (), PROPERTY_HINT_NONE, get_class_static (), PROPERTY_USAGE_CATEGORY)); \
502- ::ClassDB::get_property_list (#m_class, p_list, true , this ); \
502+ _get_property_list_from_classdb (#m_class, p_list, true , this ); \
503503 if (m_class::_get_get_property_list () != m_inherits::_get_get_property_list ()) { \
504504 _get_property_list (p_list); \
505505 } \
@@ -759,6 +759,9 @@ class Object {
759759 friend class ClassDB ;
760760 friend class PlaceholderExtensionInstance ;
761761
762+ static void _add_class_to_classdb (const StringName &p_class, const StringName &p_inherits);
763+ static void _get_property_list_from_classdb (const StringName &p_class, List<PropertyInfo> *p_list, bool p_no_inheritance, const Object *p_validator);
764+
762765 bool _disconnect (const StringName &p_signal, const Callable &p_callable, bool p_force = false );
763766
764767#ifdef TOOLS_ENABLED
0 commit comments