FTI - Change SceneTree global setting to static

Also fixup FTI configuration warnings so that they only output when the project is using FTI.
This commit is contained in:
lawnjelly
2025-06-23 10:15:39 +01:00
parent 242b8ff80a
commit 583c72f999
11 changed files with 30 additions and 17 deletions

View File

@ -239,7 +239,7 @@ void TileMapLayer::_rendering_update(bool p_force_cleanup) {
}
// Update all dirty quadrants.
bool needs_set_not_interpolated = is_inside_tree() && get_tree()->is_physics_interpolation_enabled() && !is_physics_interpolated();
bool needs_set_not_interpolated = SceneTree::is_fti_enabled() && !is_physics_interpolated();
for (SelfList<RenderingQuadrant> *quadrant_list_element = dirty_rendering_quadrant_list.first(); quadrant_list_element;) {
SelfList<RenderingQuadrant> *next_quadrant_list_element = quadrant_list_element->next(); // "Hack" to clear the list while iterating.
@ -593,7 +593,7 @@ void TileMapLayer::_rendering_occluders_update_cell(CellData &r_cell_data) {
bool transpose = (r_cell_data.cell.alternative_tile & TileSetAtlasSource::TRANSFORM_TRANSPOSE);
// Create, update or clear occluders.
bool needs_set_not_interpolated = is_inside_tree() && get_tree()->is_physics_interpolation_enabled() && !is_physics_interpolated();
bool needs_set_not_interpolated = SceneTree::is_fti_enabled() && !is_physics_interpolated();
for (uint32_t occlusion_layer_index = 0; occlusion_layer_index < r_cell_data.occluders.size(); occlusion_layer_index++) {
LocalVector<RID> &occluders = r_cell_data.occluders[occlusion_layer_index];