mirror of
https://github.com/Relintai/gdnative_python.git
synced 2024-11-12 10:25:08 +01:00
Fix issues with the bindings.
This commit is contained in:
parent
6bebb18f86
commit
531ca3b539
@ -96,7 +96,6 @@ cdef class Vector2i:
|
||||
|
||||
ZERO = Vector2i(0, 0)
|
||||
ONE = Vector2i(1, 1)
|
||||
INF = Vector2i(math.inf, math.inf)
|
||||
LEFT = Vector2i(-1, 0)
|
||||
RIGHT = Vector2i(1, 0)
|
||||
UP = Vector2i(0, -1)
|
||||
|
@ -124,7 +124,6 @@ cdef class Vector3i:
|
||||
|
||||
ZERO = Vector3i(0, 0, 0) # Zero vector.
|
||||
ONE = Vector3i(1, 1, 1) # One vector.
|
||||
INF = Vector3i(math.inf, math.inf, math.inf) # Infinite vector.
|
||||
LEFT = Vector3i(-1, 0, 0) # Left unit vector.
|
||||
RIGHT = Vector3i(1, 0, 0) # Right unit vector.
|
||||
UP = Vector3i(0, 1, 0) # Up unit vector.
|
||||
|
@ -423,9 +423,9 @@ def cook_data(data):
|
||||
elif type == "pandemonium_vector2i":
|
||||
return f"Vector2i{value}"
|
||||
elif type == "pandemonium_rect2":
|
||||
return f"Rect2{value}".replace("[P: (", "(Vector2(").replace("), S: (", "), Vector2(").replace(")]", "))")
|
||||
return f"Rect2{value}".replace("[P: (", "(").replace("), S: (", ", ").replace(")]", ")")
|
||||
elif type == "pandemonium_rect2i":
|
||||
return f"Rect2i{value}".replace("[P: (", "(Vector2i(").replace("), S: (", "), Vector2i(").replace(")]", "))")
|
||||
return f"Rect2i{value}".replace("[P: (", "(").replace("), S: (", ", ").replace(")]", ")")
|
||||
elif type == "pandemonium_vector3":
|
||||
return f"Vector3{value}"
|
||||
elif type == "pandemonium_vector3i":
|
||||
@ -448,7 +448,7 @@ def cook_data(data):
|
||||
elif value == "[RID]":
|
||||
return "RID()"
|
||||
elif type == "pandemonium_color":
|
||||
return f"Color({value})"
|
||||
return f"Color{value}"
|
||||
elif type == "pandemonium_pool_color_array" and value == "[PoolColorArray]":
|
||||
return "PoolColorArray()"
|
||||
elif type == "pandemonium_array" and value == "[]":
|
||||
|
@ -18,15 +18,6 @@ from pandemonium.tags import (
|
||||
MethodRPCMode,
|
||||
PropertyHint,
|
||||
PropertyUsageFlag,
|
||||
rpcdisabled,
|
||||
rpcremote,
|
||||
rpcmaster,
|
||||
rpcpuppet,
|
||||
rpcslave,
|
||||
rpcremotesync,
|
||||
rpcsync,
|
||||
rpcmastersync,
|
||||
rpcpuppetsync,
|
||||
signal,
|
||||
export,
|
||||
exposed,
|
||||
|
Loading…
Reference in New Issue
Block a user