-
-
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
Clearing one of the values of TypedArray in the inspector makes the value unable to be found by the find function #82716
Labels
Milestone
Comments
Still a problem in v4.2.dev6.official [57a6813] |
The MRP crashes on master.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
v4.1.2.rc1.official [58f0cae] and v4.2.dev5.official [e3e2528]
System information
Godot v4.1.2.rc1 - Windows 10.0.19044 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1650 (NVIDIA; 31.0.15.3742) - AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (8 Threads)
Issue description
Clearing one of the values of a typed array in the inspector seems to just unreference value and not set it to
<null>
, so the value becomes<Object#null>
. Array's find function seems to look for the<null>
value and doesn't accept<Object#null>
, even if in GDScript<Object#null>
==<null>
. So, when calling array.find(null) in the tool script, the function can't find anything. When the project is restarted or you run it, the values that were equal to<Object#null>
will become<null>
.Steps to reproduce
Minimal reproduction project
ArrayBug.zip
The text was updated successfully, but these errors were encountered: