You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Core: Decouple GDCLASS from ClassDB
This commit is contained in:
@@ -1590,7 +1590,7 @@ void Object::initialize_class() {
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
ClassDB::_add_class<Object>();
|
||||
_add_class_to_classdb(get_class_static(), get_parent_class_static());
|
||||
_bind_methods();
|
||||
_bind_compatibility_methods();
|
||||
initialized = true;
|
||||
@@ -1666,6 +1666,14 @@ void Object::_clear_internal_resource_paths(const Variant &p_var) {
|
||||
}
|
||||
}
|
||||
|
||||
void Object::_add_class_to_classdb(const StringName &p_class, const StringName &p_inherits) {
|
||||
ClassDB::_add_class(p_class, p_inherits);
|
||||
}
|
||||
|
||||
void Object::_get_property_list_from_classdb(const StringName &p_class, List<PropertyInfo> *p_list, bool p_no_inheritance, const Object *p_validator) {
|
||||
ClassDB::get_property_list(p_class, p_list, p_no_inheritance, p_validator);
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
void Object::editor_set_section_unfold(const String &p_section, bool p_unfolded, bool p_initializing) {
|
||||
if (!p_initializing) {
|
||||
|
||||
Reference in New Issue
Block a user