diff --git a/scene/main/scene_tree_fti.cpp b/scene/main/scene_tree_fti.cpp index d0d8370bf80..a9aae237f41 100644 --- a/scene/main/scene_tree_fti.cpp +++ b/scene/main/scene_tree_fti.cpp @@ -283,7 +283,7 @@ void SceneTreeFTI::_create_depth_lists() { // This shouldn't happen, but wouldn't be terrible if it did. DEV_ASSERT(depth >= 0); - depth = MIN(depth, (int32_t)data.scene_tree_depth_limit); + depth = MIN(depth, (int32_t)data.scene_tree_depth_limit - 1); LocalVector &dest_list = data.dirty_spatial_depth_lists[depth]; #ifdef GODOT_SCENE_TREE_FTI_EXTRA_CHECKS diff --git a/scene/main/scene_tree_fti.h b/scene/main/scene_tree_fti.h index 25ff3442060..ccfab486393 100644 --- a/scene/main/scene_tree_fti.h +++ b/scene/main/scene_tree_fti.h @@ -80,7 +80,7 @@ class SceneTreeFTI { }; struct Data { - static const uint32_t scene_tree_depth_limit = 32; + static const uint32_t scene_tree_depth_limit = 48; // Prev / Curr lists of spatials having local xforms pumped. LocalVector tick_xform_list[2];