Skip to content
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

Exported Vars: Cannot clear item from array when hint is Array[Node] #96273

Closed
KccbzZ opened this issue Aug 29, 2024 · 1 comment · Fixed by #96620
Closed

Exported Vars: Cannot clear item from array when hint is Array[Node] #96273

KccbzZ opened this issue Aug 29, 2024 · 1 comment · Fixed by #96620

Comments

@KccbzZ
Copy link

KccbzZ commented Aug 29, 2024

Tested versions

v4.3.stable.official [77dcf97]

System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+)

Issue description

When exporting a variable with the hint Array[Node] and adding an item to it, then on that item clicking the 3 dots then clicking Clear, this will show the following error:

 Attempted to set a variable of type 'NodePath' into a TypedArray of type 'Object'.
  core/variant/array.cpp:429 - Condition "!_p->typed.validate(value, "set")" is true.

Steps to reproduce

  1. Create a new project (v4.3.stable is the only one I tested)
  2. Add a node
  3. Add a script
  4. Write @export var test : Array[Node]
  5. In the inspector, add an item to the array (select any node)
  6. Now clear that item only using 3 Dots > Clear
  7. The error above should display in Output

Minimal reproduction project (MRP)

N/A

@dalexeev
Copy link
Member

CC @ajreckof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants