FTI - Add reset on setting top_level

This commit is contained in:
lawnjelly
2025-06-29 16:55:15 +01:00
parent e1b4101e34
commit 2d3dedb12d
3 changed files with 4 additions and 1 deletions

View File

@ -952,7 +952,7 @@ void Node::set_physics_interpolation_mode(PhysicsInterpolationMode p_mode) {
}
void Node::reset_physics_interpolation() {
if (is_inside_tree()) {
if (SceneTree::is_fti_enabled() && is_inside_tree()) {
propagate_notification(NOTIFICATION_RESET_PHYSICS_INTERPOLATION);
// If `reset_physics_interpolation()` is called explicitly by the user