Core: Fix built-in enum constant bindings
This commit is contained in:
@ -278,22 +278,22 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="PLANE_NEAR" value="0">
|
||||
<constant name="PLANE_NEAR" value="0" enum="Planes">
|
||||
The index value of the projection's near clipping plane.
|
||||
</constant>
|
||||
<constant name="PLANE_FAR" value="1">
|
||||
<constant name="PLANE_FAR" value="1" enum="Planes">
|
||||
The index value of the projection's far clipping plane.
|
||||
</constant>
|
||||
<constant name="PLANE_LEFT" value="2">
|
||||
<constant name="PLANE_LEFT" value="2" enum="Planes">
|
||||
The index value of the projection's left clipping plane.
|
||||
</constant>
|
||||
<constant name="PLANE_TOP" value="3">
|
||||
<constant name="PLANE_TOP" value="3" enum="Planes">
|
||||
The index value of the projection's top clipping plane.
|
||||
</constant>
|
||||
<constant name="PLANE_RIGHT" value="4">
|
||||
<constant name="PLANE_RIGHT" value="4" enum="Planes">
|
||||
The index value of the projection's right clipping plane.
|
||||
</constant>
|
||||
<constant name="PLANE_BOTTOM" value="5">
|
||||
<constant name="PLANE_BOTTOM" value="5" enum="Planes">
|
||||
The index value of the projection bottom clipping plane.
|
||||
</constant>
|
||||
<constant name="IDENTITY" value="Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)">
|
||||
|
||||
@ -424,10 +424,10 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector2(0, 0)">
|
||||
|
||||
@ -170,10 +170,10 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector2i(0, 0)">
|
||||
|
||||
@ -421,13 +421,13 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Z" value="2">
|
||||
<constant name="AXIS_Z" value="2" enum="Axis">
|
||||
Enumerated value for the Z axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector3(0, 0, 0)">
|
||||
|
||||
@ -168,13 +168,13 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Z" value="2">
|
||||
<constant name="AXIS_Z" value="2" enum="Axis">
|
||||
Enumerated value for the Z axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector3i(0, 0, 0)">
|
||||
|
||||
@ -287,16 +287,16 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Z" value="2">
|
||||
<constant name="AXIS_Z" value="2" enum="Axis">
|
||||
Enumerated value for the Z axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_W" value="3">
|
||||
<constant name="AXIS_W" value="3" enum="Axis">
|
||||
Enumerated value for the W axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector4(0, 0, 0, 0)">
|
||||
|
||||
@ -169,16 +169,16 @@
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="AXIS_X" value="0">
|
||||
<constant name="AXIS_X" value="0" enum="Axis">
|
||||
Enumerated value for the X axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Y" value="1">
|
||||
<constant name="AXIS_Y" value="1" enum="Axis">
|
||||
Enumerated value for the Y axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_Z" value="2">
|
||||
<constant name="AXIS_Z" value="2" enum="Axis">
|
||||
Enumerated value for the Z axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="AXIS_W" value="3">
|
||||
<constant name="AXIS_W" value="3" enum="Axis">
|
||||
Enumerated value for the W axis. Returned by [method max_axis_index] and [method min_axis_index].
|
||||
</constant>
|
||||
<constant name="ZERO" value="Vector4i(0, 0, 0, 0)">
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user