Open AdamLearns opened 2 weeks ago
Note to anyone experiencing this: you can work around this by setting NodeWithReference
through code instead of through the editor. This isn't ideal as it means that you can't just start using the nodes from _Ready()
, but at least it's a somewhat minimal change as opposed to redoing your entire scene inheritance hierarchy.
Tested versions
System information
M2 macOS - Sonoma 14.6.1
Issue description
In the attached project, try running
Derived.tscn
. It will output this:For whatever reason,
Base.Dispose
is indeed called. I don't know why that's happening, but as a result,NodeReferencer
is unable to access the now-disposed node being referenced.Steps to reproduce
It seems that you have to do this:
Export
attributeThis does not seem to reproduce when using GDScript, only C#. In GDScript, I don't see
NOTIFICATION_PREDELETE
being sent.Minimal reproduction project (MRP)
DisposedObjectRepro.zip