fix indentation in bindings generator
parent
38da87fc0b
commit
7fc6a8b98d
|
@ -376,7 +376,7 @@ def generate_class_implementation(icalls, used_classes, c):
|
||||||
else:
|
else:
|
||||||
|
|
||||||
source.append("\tstatic godot_method_bind *mb = nullptr;")
|
source.append("\tstatic godot_method_bind *mb = nullptr;")
|
||||||
source.append("\tif (mb == nullptr) {")
|
source.append("\tif (mb == nullptr) {")
|
||||||
source.append("\t\tmb = godot::api->godot_method_bind_get_method(\"" + c["name"] +"\", \"" + method["name"] + "\");")
|
source.append("\t\tmb = godot::api->godot_method_bind_get_method(\"" + c["name"] +"\", \"" + method["name"] + "\");")
|
||||||
source.append("\t}")
|
source.append("\t}")
|
||||||
|
|
||||||
|
@ -667,7 +667,7 @@ def generate_type_registry(classes):
|
||||||
|
|
||||||
for c in classes:
|
for c in classes:
|
||||||
class_name = strip_name(c["name"])
|
class_name = strip_name(c["name"])
|
||||||
base_class_name = strip_name(c["base_class"])
|
base_class_name = strip_name(c["base_class"])
|
||||||
|
|
||||||
class_type_hash = "typeid(" + class_name + ").hash_code()"
|
class_type_hash = "typeid(" + class_name + ").hash_code()"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue