diff options
| author | Karroffel <therzog@mail.de> | 2017-06-20 23:26:22 +0200 |
|---|---|---|
| committer | Karroffel <therzog@mail.de> | 2017-06-20 23:26:22 +0200 |
| commit | 82165394ca6faf780b547c5becf42ea75f08ed07 (patch) | |
| tree | 6da864fe1c64a95aa30acabe76459050e9ad36cc | |
| parent | b6ca6a2d8ed64c500840c8ce3d3c962fb340a36b (diff) | |
| download | redot-cpp-82165394ca6faf780b547c5becf42ea75f08ed07.tar.gz | |
fixed singleton naming thingy
| -rw-r--r-- | binding_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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("}") |
