1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Core: Fix built-in enum constant bindings

This commit is contained in:
Danil Alexeev
2024-11-22 14:03:21 +03:00
parent f952bfe998
commit 03b05cf9ac
24 changed files with 279 additions and 109 deletions

View File

@@ -1555,9 +1555,7 @@ def make_enum(t: str, is_bitfield: bool, state: State) -> str:
else:
return f":ref:`{e}<enum_{c}_{e}>`"
# Don't fail for `Vector3.Axis`, as this enum is a special case which is expected not to be resolved.
if f"{c}.{e}" != "Vector3.Axis":
print_error(f'{state.current_class}.xml: Unresolved enum "{t}".', state)
print_error(f'{state.current_class}.xml: Unresolved enum "{t}".', state)
return t