[Core] Fix a small issue where subtrees of exiting element were deleted too early

This commit is contained in:
Nic Barker 2026-04-02 13:22:37 +11:00
parent cfee7e8376
commit 2d4862dc6f

2
clay.h
View file

@ -2904,7 +2904,7 @@ void Clay__CalculateFinalLayout(float deltaTime, bool useStoredBoundingBoxes, bo
}
}
// An exiting element that completed its transition this frame - skip tree
if (!found) {
if (!found && currentElement->config.transition.exit.setFinalState) {
dfsBuffer.length--;
continue;
}