You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Export a typed array of Resource or any of the types that inherit from it;
Set one of the values of a typed array to anything;
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: