From 82165394ca6faf780b547c5becf42ea75f08ed07 Mon Sep 17 00:00:00 2001 From: Karroffel Date: Tue, 20 Jun 2017 23:26:22 +0200 Subject: [PATCH] fixed singleton naming thingy --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index e3d6c9b..cd969e6 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -229,7 +229,7 @@ def generate_class_implementation(icalls, used_classes, c): source.append("static inline void ___singleton_init()") source.append("{") source.append("\tif (" + core_object_name + " == nullptr) {") - source.append("\t\t" + core_object_name + " = godot_global_get_singleton(\"" + c["name"] + "\");") + source.append("\t\t" + core_object_name + " = godot_global_get_singleton(\"" + strip_name(c["name"]) + "\");") source.append("\t}") source.append("}")