You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove underscore hacks
Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
This commit is contained in:
@@ -242,13 +242,9 @@ List<ClassAPI> generate_c_api_classes() {
|
||||
class_api.class_name = class_name;
|
||||
class_api.super_class_name = ClassDB::get_parent_class(class_name);
|
||||
{
|
||||
String name = class_name;
|
||||
if (name.begins_with("_")) {
|
||||
name.remove(0);
|
||||
}
|
||||
class_api.is_singleton = Engine::get_singleton()->has_singleton(name);
|
||||
class_api.is_singleton = Engine::get_singleton()->has_singleton(class_name);
|
||||
if (class_api.is_singleton) {
|
||||
class_api.singleton_name = name;
|
||||
class_api.singleton_name = class_name;
|
||||
}
|
||||
}
|
||||
class_api.is_instantiable = !class_api.is_singleton && ClassDB::can_instantiate(class_name);
|
||||
|
||||
Reference in New Issue
Block a user