|
@@ -3681,6 +3681,13 @@ Viewport::Viewport() {
|
|
|
local_input_handled = false;
|
|
|
handle_input_locally = true;
|
|
|
physics_last_id = 0; //ensures first time there will be a check
|
|
|
+
|
|
|
+ // Physics interpolation mode for viewports is a special case.
|
|
|
+ // Typically viewports will be housed within Controls,
|
|
|
+ // and Controls default to PHYSICS_INTERPOLATION_MODE_OFF.
|
|
|
+ // Viewports can thus inherit physics interpolation OFF, which is unexpected.
|
|
|
+ // Setting to ON allows each viewport to have a fresh interpolation state.
|
|
|
+ set_physics_interpolation_mode(Node::PHYSICS_INTERPOLATION_MODE_ON);
|
|
|
}
|
|
|
|
|
|
Viewport::~Viewport() {
|