mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixed Timestep Interpolation: Fix behaviour on pause
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
This commit is contained in:
parent
f3af22b10b
commit
ceadbaa299
2 changed files with 12 additions and 0 deletions
|
|
@ -177,6 +177,12 @@ void Node::_notification(int p_notification) {
|
|||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_PAUSED: {
|
||||
if (is_physics_interpolated_and_enabled() && is_inside_tree()) {
|
||||
reset_physics_interpolation();
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_PATH_RENAMED: {
|
||||
if (data.path_cache) {
|
||||
memdelete(data.path_cache);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue