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

Can't edit exported nodes in array as text #89065

Closed
KoBeWi opened this issue Mar 1, 2024 · 2 comments · Fixed by #90047
Closed

Can't edit exported nodes in array as text #89065

KoBeWi opened this issue Mar 1, 2024 · 2 comments · Fixed by #90047

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Mar 1, 2024

Tested versions

4.3 dev4
But likely existed since much earlier.

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

When using the Edit option from NodePath's menu, when the property is an Array of Nodes
image
submitting the text results in an error

  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

  1. `@export var a: Array[Node]
  2. In the inspector, add element to array
  3. Use Edit option from menu
  4. Type something and press Enter

Minimal reproduction project (MRP)

N/A

@des54321
Copy link

des54321 commented Mar 1, 2024

does it give the same error when its just a Node and not in an array?

@KoBeWi
Copy link
Member Author

KoBeWi commented Mar 1, 2024

No.

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