Fix TagDB registration for classes with underscore in the name.

pull/197/head
bruvzg 2018-11-17 18:25:12 +02:00
parent 700310c8c3
commit ec5d718191
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ def generate_type_registry(classes):
if base_class_name == "":
base_class_type_hash = "0"
source.append("\tgodot::_TagDB::register_global_type(\"" + class_name + "\", " + class_type_hash + ", " + base_class_type_hash + ");")
source.append("\tgodot::_TagDB::register_global_type(\"" + c["name"] + "\", " + class_type_hash + ", " + base_class_type_hash + ");")
source.append("}")