mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
Class constants should be static
This commit is contained in:
@@ -1022,7 +1022,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
|
|||||||
for value in class_api["constants"]:
|
for value in class_api["constants"]:
|
||||||
if "type" not in value:
|
if "type" not in value:
|
||||||
value["type"] = "int"
|
value["type"] = "int"
|
||||||
result.append(f'\tconst {value["type"]} {value["name"]} = {value["value"]};')
|
result.append(f'\tstatic const {value["type"]} {value["name"]} = {value["value"]};')
|
||||||
result.append("")
|
result.append("")
|
||||||
|
|
||||||
if is_singleton:
|
if is_singleton:
|
||||||
|
|||||||
Reference in New Issue
Block a user