mirror of
https://github.com/Relintai/regression-test-project.git
synced 2024-12-25 14:07:21 +01:00
Disable for now Transform/3d (#47)
This commit is contained in:
parent
aa250456ed
commit
a70971532b
@ -6,7 +6,7 @@ var regression_test_project : bool = true # Set it to true in RegressionTestProj
|
|||||||
# Also allows to get list of available classes
|
# Also allows to get list of available classes
|
||||||
|
|
||||||
var function_exceptions : Array = [
|
var function_exceptions : Array = [
|
||||||
#GODOT 4.0
|
#GODOT 4.0
|
||||||
"create_from_image",
|
"create_from_image",
|
||||||
"set_point_position",
|
"set_point_position",
|
||||||
"connect", # OTHER THINGS
|
"connect", # OTHER THINGS
|
||||||
@ -209,7 +209,7 @@ var disabled_classes : Array = [
|
|||||||
"IP_Unix",
|
"IP_Unix",
|
||||||
"JNISingleton",
|
"JNISingleton",
|
||||||
|
|
||||||
# Godot 4.0 Leaks, crashes etc.
|
# Godot 4.0 Leaks, crashes etc.
|
||||||
"World3D",
|
"World3D",
|
||||||
"GPUParticlesCollisionHeightField", #4.0 Crash
|
"GPUParticlesCollisionHeightField", #4.0 Crash
|
||||||
"NavigationAgent2D",
|
"NavigationAgent2D",
|
||||||
@ -272,7 +272,9 @@ func check_if_is_allowed(method_data : Dictionary) -> bool:
|
|||||||
var t : int = arg.get("type")
|
var t : int = arg.get("type")
|
||||||
if t == TYPE_CALLABLE:
|
if t == TYPE_CALLABLE:
|
||||||
return false
|
return false
|
||||||
elif !(t == TYPE_NIL|| t == TYPE_MAX|| t == TYPE_AABB|| t == TYPE_ARRAY|| t == TYPE_BASIS|| t == TYPE_BOOL|| t == TYPE_COLOR|| t == TYPE_COLOR_ARRAY|| t == TYPE_DICTIONARY|| t == TYPE_INT|| t == TYPE_INT32_ARRAY|| t == TYPE_INT64_ARRAY|| t == TYPE_NODE_PATH|| t == TYPE_OBJECT|| t == TYPE_PLANE|| t == TYPE_QUAT|| t == TYPE_RAW_ARRAY|| t == TYPE_FLOAT|| t == TYPE_FLOAT32_ARRAY|| t == TYPE_FLOAT64_ARRAY|| t == TYPE_RECT2|| t == TYPE_RECT2I|| t == TYPE_RID|| t == TYPE_STRING|| t == TYPE_STRING_NAME|| t == TYPE_STRING_ARRAY|| t == TYPE_TRANSFORM|| t == TYPE_TRANSFORM2D|| t == TYPE_VECTOR2|| t == TYPE_VECTOR2I|| t == TYPE_VECTOR2_ARRAY|| t == TYPE_VECTOR3|| t == TYPE_VECTOR3I|| t == TYPE_VECTOR3_ARRAY):
|
# if t == TYPE_TRANSFORM: # Look at GH 38430
|
||||||
|
# return false
|
||||||
|
elif !(t == TYPE_NIL|| t == TYPE_MAX|| t == TYPE_AABB|| t == TYPE_ARRAY|| t == TYPE_BASIS|| t == TYPE_BOOL|| t == TYPE_COLOR|| t == TYPE_COLOR_ARRAY|| t == TYPE_DICTIONARY|| t == TYPE_INT|| t == TYPE_INT32_ARRAY|| t == TYPE_INT64_ARRAY|| t == TYPE_NODE_PATH|| t == TYPE_OBJECT|| t == TYPE_PLANE|| t == TYPE_QUAT|| t == TYPE_RAW_ARRAY|| t == TYPE_FLOAT|| t == TYPE_FLOAT32_ARRAY|| t == TYPE_FLOAT64_ARRAY|| t == TYPE_RECT2|| t == TYPE_RECT2I|| t == TYPE_RID|| t == TYPE_STRING|| t == TYPE_STRING_NAME|| t == TYPE_STRING_ARRAY|| t == TYPE_TRANSFORM2D|| t == TYPE_VECTOR2|| t == TYPE_VECTOR2I|| t == TYPE_VECTOR2_ARRAY|| t == TYPE_VECTOR3|| t == TYPE_VECTOR3I|| t == TYPE_VECTOR3_ARRAY):
|
||||||
print("----------------------------------------------------------- TODO - MISSING TYPE, ADD SUPPORT IT")
|
print("----------------------------------------------------------- TODO - MISSING TYPE, ADD SUPPORT IT")
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
@ -105,9 +105,9 @@ func create_gdscript_arguments(arguments: Array) -> Array:
|
|||||||
elif typ ==TYPE_STRING_ARRAY:
|
elif typ ==TYPE_STRING_ARRAY:
|
||||||
sa.type = "PackedStringArray"
|
sa.type = "PackedStringArray"
|
||||||
sa.value = "PackedStringArray([])"
|
sa.value = "PackedStringArray([])"
|
||||||
elif typ ==TYPE_TRANSFORM:
|
# elif typ ==TYPE_TRANSFORM:
|
||||||
sa.type = "Transform"
|
# sa.type = "Transform"
|
||||||
sa.value = ValueCreator.get_transform_string()
|
# sa.value = ValueCreator.get_transform_string()
|
||||||
elif typ ==TYPE_TRANSFORM2D:
|
elif typ ==TYPE_TRANSFORM2D:
|
||||||
sa.type = "Transform2D"
|
sa.type = "Transform2D"
|
||||||
sa.value = ValueCreator.get_transform2D_string()
|
sa.value = ValueCreator.get_transform2D_string()
|
||||||
@ -210,8 +210,8 @@ func parse_and_return_objects(method_data: Dictionary, debug_print: bool = false
|
|||||||
arguments_array.push_back(StringName(ValueCreator.get_string()))
|
arguments_array.push_back(StringName(ValueCreator.get_string()))
|
||||||
elif type == TYPE_STRING_ARRAY:
|
elif type == TYPE_STRING_ARRAY:
|
||||||
arguments_array.push_back(PackedStringArray([]))
|
arguments_array.push_back(PackedStringArray([]))
|
||||||
elif type == TYPE_TRANSFORM:
|
# elif type == TYPE_TRANSFORM:
|
||||||
arguments_array.push_back(ValueCreator.get_transform())
|
# arguments_array.push_back(ValueCreator.get_transform())
|
||||||
elif type == TYPE_TRANSFORM2D:
|
elif type == TYPE_TRANSFORM2D:
|
||||||
arguments_array.push_back(ValueCreator.get_transform2D())
|
arguments_array.push_back(ValueCreator.get_transform2D())
|
||||||
elif type == TYPE_VECTOR2:
|
elif type == TYPE_VECTOR2:
|
||||||
|
@ -85,11 +85,11 @@ func get_aabb() -> AABB:
|
|||||||
func get_aabb_string() -> String:
|
func get_aabb_string() -> String:
|
||||||
return "AABB(" + get_vector3_string() + ", " + get_vector3_string() + ")"
|
return "AABB(" + get_vector3_string() + ", " + get_vector3_string() + ")"
|
||||||
|
|
||||||
func get_transform() -> Transform:
|
#func get_transform() -> Transform:
|
||||||
return Transform(get_vector3(),get_vector3(),get_vector3(),get_vector3())
|
# return Transform(get_vector3(),get_vector3(),get_vector3(),get_vector3())
|
||||||
|
#
|
||||||
func get_transform_string() -> String:
|
#func get_transform_string() -> String:
|
||||||
return "Transform(" + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ")"
|
# return "Transform(" + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ", " + get_vector3_string() + ")"
|
||||||
|
|
||||||
func get_transform2D() -> Transform2D:
|
func get_transform2D() -> Transform2D:
|
||||||
return Transform2D(get_vector2(),get_vector2(),get_vector2())
|
return Transform2D(get_vector2(),get_vector2(),get_vector2())
|
||||||
|
Loading…
Reference in New Issue
Block a user