If a script exports an Array[Node], its contents will be lost if the script has an error and the scene file is reloaded in the editor.
This can also happen when using external editor to write the script, but is likely the same issue.
I also tried the same with float and Array[int], but everything gets remembered properly in these cases.
Tested versions
Reproduced in 4.3-stable
System information
Godot v4.3.stable - Windows 10.0.19044 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2080 (NVIDIA; 32.0.15.5585) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)
Issue description
If a script exports an
Array[Node]
, its contents will be lost if the script has an error and the scene file is reloaded in the editor. This can also happen when using external editor to write the script, but is likely the same issue.I also tried the same with
float
andArray[int]
, but everything gets remembered properly in these cases.https://github.com/user-attachments/assets/9ac089d0-a795-4d44-8df3-0e335e62a169
Steps to reproduce
If you download the MRP, you can skip step 1 and 2.
@export var breaks: Array[Node] = []
in it.func
to the end of the file) and save.Minimal reproduction project (MRP)
node-array-scene-restore.zip