Closed MikeSchulze closed 3 days ago
Related to #98446 which added the method, though it's not the first use of Vector3.Axis
in the API, so I'm surprised it's only a problem now for your use case.
e.g. use a valid script code will show the compile error
var axis_typed :Vector3.Axis = modifier.get_primary_rotation_axis()
Parse Error: Built-in types don't contain nested types.
#99424 sounds related and might solve this?
Yes, it should fix this, see the test analyzer/features/global_builtin_and_native_enums.gd
in the PR.
@akien-mga it is an older issue right, I checked my mock tests and see I had explicit excluded "Sprite3D", "AnimatedSprite3D" in the past, but I can't remember which version of Godot
@akien-mga it is an older issue right, I checked my mock tests and see I had explicit excluded "Sprite3D", "AnimatedSprite3D" in the past, but I can't remember which version of Godot
I'm fairly confident it exists at least in 4.3 stable (and perhaps earlier), since this PR originated as an attempt to fix #99309 (which turned out to be a minor symptom of the same core problem)
Tested versions
v4.4.dev5.mono.official [9e6098432]
System information
All
Issue description
I'm providing a mocking util for testing in my plugin GdUnit4 and the test are broken now. My tests try to mock all Godot classes, and it fails now on
LookAtModifier3D#get_primary_rotation_axis
The method is documented asBut the
Vector3
has no enumAxis
defined.Steps to reproduce
Run the script to check the provided method info.
The output is:
I use the provided method info to build the mocking class, and it will not be compiling about missing enum
Vector3.Axis
e.g. use a valid script code will show the compile error
var axis_typed :Vector3.Axis = modifier.get_primary_rotation_axis()
Parse Error: Built-in types don't contain nested types. Same issues for all classes inherits from
SpriteBase3D
Minimal reproduction project (MRP)
n/a