Physics Interpolation - Auto-reset on set_physics_interpolation_mode()

Fixes historical bug where auto-reset wasn't working correctly.
Also fixes process modes on Cameras when mode is changed.
This commit is contained in:
lawnjelly 2025-02-10 10:14:50 +00:00
parent 36d90c73a8
commit e46993f0db
4 changed files with 11 additions and 4 deletions

View file

@ -482,6 +482,11 @@ void SceneTree::set_physics_interpolation_enabled(bool p_enabled) {
_physics_interpolation_enabled = p_enabled;
RenderingServer::get_singleton()->set_physics_interpolation_enabled(p_enabled);
// Perform an auto reset on the root node for convenience for the user.
if (root) {
root->reset_physics_interpolation();
}
}
bool SceneTree::is_physics_interpolation_enabled() const {