summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-25 01:35:49 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-25 01:35:49 +0100
commit52033c68f5d32ce53a7bcda187e3cc7ef423b381 (patch)
tree04ba01461c8e654ff253a58322b40975049d1173 /modules
parentadbabfbaa9e7560be279b6824ca725c8cad995bf (diff)
parent3730d8e343ac20b62912c240528b59ae56ff7d1f (diff)
Merge pull request #73882 from raulsntos/dotnet/check-singletons-properly
C#: Check if a class is a singleton using the Core name
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/editor/bindings_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp
index ad6306bb41..cbe5266f7e 100644
--- a/modules/mono/editor/bindings_generator.cpp
+++ b/modules/mono/editor/bindings_generator.cpp
@@ -2831,7 +2831,7 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
TypeInterface itype = TypeInterface::create_object_type(type_cname, pascal_to_pascal_case(type_cname), api_type);
itype.base_name = ClassDB::get_parent_class(type_cname);
- itype.is_singleton = Engine::get_singleton()->has_singleton(itype.proxy_name);
+ itype.is_singleton = Engine::get_singleton()->has_singleton(type_cname);
itype.is_instantiable = class_info->creation_func && !itype.is_singleton;
itype.is_ref_counted = ClassDB::is_parent_class(type_cname, name_cache.type_RefCounted);
itype.memory_own = itype.is_ref_counted;