NOTIFICATION_PREDELETE
's timing across nodes when deleting a scene tree branch is off
#87151
Labels
NOTIFICATION_PREDELETE
's timing across nodes when deleting a scene tree branch is off
#87151
Tested versions
System information
Godot v4.2.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated Radeon RX 580 Series (Advanced Micro Devices, Inc.; 31.0.21905.1001) - AMD Ryzen 7 2700X Eight-Core Processor (16 Threads)
Issue description
Problem
When the root node of a branch is freed,
NOTIFICATION_PREDELETE
isn't sent in a consistent order to the nodes of the branch.In a scene that has the following hierarchy:
If you free
A--
in 4.2.1, notifications will be sent in the following order:NOTIFICATION_PREDELETE
is sent toA--
beforeNOTIFICATION_EXIT_TREE
NOTIFICATION_PREDELETE
isn't sent to the children in the same order as the other notificationsDoing the same thing in 4.1.3 results in the following output:
In this case there is no problem.
Expected behavior
I expect the timing of
NOTIFICATION_PREDELETE
to be the same as in 4.1.3.Notes
Steps to reproduce
Minimal reproduction project (MRP)
MRP.zip
The text was updated successfully, but these errors were encountered: