-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typed Array append_array
type validation checks the argument's container type, not the contained type
#54939
Comments
I am getting this error in 4.0.alpha3 when using
only occurs when |
Getting this same error with find_nodes. However, in my case, it can only actually find nodes that are one level below, regardless of the value of the recursive parameter. |
I am also getting this error even when calling var cg1 = $Node2D.get_children()
var cg2 = $Node2D2.get_children()
cg1.append_array(cg2)
append_array() fails. no amount of trying to statically type or cast the arrays to be the same type helps. tested in alpha 1 and 4. edit: interestingly |
Any updates on this issue? I'm getting same errors whilst trying to fix the Physics Demo. |
have you read & tried this?
|
Also happens when double clicking a glb file to show the importer dialog:
|
|
Godot version
4.0.dev ()
System information
W10
Issue description
When using typed array
append_array
, I got a strange error.The issue that the validation done in
append_array
incorrectly checks the argument array's type (Variant::ARRAY
) rather than the contained type (in this case,Variant::VECTOR3I
).godot/core/variant/array.cpp
Lines 235 to 239 in 3e214a8
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: