Skip to content

Commit 67ef412

Browse files
authored
Merge pull request #108132 from lawnjelly/fti_clear_all3
[3.x] `FTI` - Clear all when enabling / disabling `SceneTreeFTI`
2 parents 97d3916 + 50a684c commit 67ef412

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scene/main/scene_tree_fti.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ void SceneTreeFTI::set_enabled(Node *p_root, bool p_enabled) {
8787
data.tick_xform_list[0].clear();
8888
data.tick_xform_list[1].clear();
8989

90+
data.frame_xform_list.clear();
91+
data.frame_xform_list_forced.clear();
92+
93+
data.tick_property_list[0].clear();
94+
data.tick_property_list[1].clear();
95+
96+
data.frame_property_list.clear();
97+
data.request_reset_list.clear();
98+
99+
_clear_depth_lists();
100+
90101
// Spatial flags must be reset.
91102
if (p_root) {
92103
_reset_flags(p_root);

0 commit comments

Comments
 (0)