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
When exporting a Typed Array, where the type is set to Node, you can't unset elements previously added. The only way to remove the reference in the editor is to completely delete the array index.
When attempting to reset the entry to the empty default, the following error message pops up:
Attempted to set a variable of type 'NodePath' into a TypedArray of type 'Object'.
core/variant/array.cpp:413 - Condition "!_p->typed.validate(value, "set")" is true.
Steps to reproduce
The type Thing exports an Array[Thing] (also tested with Node as entry type)
In the root scene, open the inspector for one of the Thing nodes and add another Thing node to the exported array Arr. Then try resetting that index's value. The error message given in the issue description will pop up and the reference stays
Godot version
4.1.1 Stable
System information
Godot v4.1.1.stable - Fedora Linux 38 (Workstation Edition) - Vulkan (Forward+) - dedicated AMD Radeon RX 6600 XT (RADV NAVI23) () - AMD Ryzen 5 3600X 6-Core Processor (12 Threads)
Issue description
When exporting a Typed Array, where the type is set to Node, you can't unset elements previously added. The only way to remove the reference in the editor is to completely delete the array index.
When attempting to reset the entry to the empty default, the following error message pops up:
Steps to reproduce
The type
Thing
exports anArray[Thing]
(also tested withNode
as entry type)In the root scene, open the inspector for one of the
Thing
nodes and add anotherThing
node to the exported array Arr. Then try resetting that index's value. The error message given in the issue description will pop up and the reference staysMinimal reproduction project
bug_example.zip
The text was updated successfully, but these errors were encountered: