Skip to content

Commit bec4f66

Browse files
committed
Merge pull request #107485 from lawnjelly/scenetreefti_cachedchildren_fix
`SceneTreeFTI` - miscellaneous speedups
2 parents 2aab160 + 59556cb commit bec4f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/main/scene_tree_fti.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ void SceneTreeFTI::_update_dirty_nodes(Node *p_node, uint32_t p_current_half_fra
459459
#endif
460460

461461
// Don't recurse into hidden branches.
462-
if (s && !s->is_visible()) {
462+
if (s && !s->data.visible) {
463463
// NOTE : If we change from recursing entire tree, we should do an is_visible_in_tree()
464464
// check for the first of the branch.
465465
return;
@@ -593,7 +593,7 @@ void SceneTreeFTI::_update_dirty_nodes(Node *p_node, uint32_t p_current_half_fra
593593

594594
// Recurse to children.
595595
for (uint32_t n = 0; n < num_children; n++) {
596-
_update_dirty_nodes(p_node->get_child(n), p_current_half_frame, p_interpolation_fraction, p_active, s->data.fti_global_xform_interp_set ? &s->data.global_transform_interpolated : &s->data.global_transform, p_depth + 1);
596+
_update_dirty_nodes(children.ptr()[n], p_current_half_frame, p_interpolation_fraction, p_active, s->data.fti_global_xform_interp_set ? &s->data.global_transform_interpolated : &s->data.global_transform, p_depth + 1);
597597
}
598598
}
599599

0 commit comments

Comments
 (0)