diff --git a/rendering/opengl46/opengl46renderer.cpp b/rendering/opengl46/opengl46renderer.cpp index cbe7da7c9..bd510fe36 100644 --- a/rendering/opengl46/opengl46renderer.cpp +++ b/rendering/opengl46/opengl46renderer.cpp @@ -1700,8 +1700,10 @@ void opengl46_renderer::Render_pass(viewport_config &vp, rendermode const Mode) } // the wipers of the vehicle the camera is in, or of the train driven when the camera is outside it: the moments the blades // were at the ends of their sweep (the drops on the glass come back from then) are kept while the camera is away, so the glass - // looks as the blades left it when it's back in the cab. they're forgotten only for another vehicle - TDynamicObject const *owner = Global.pCamera.m_owner; + // looks as the blades left it when it's back in the cab. they're forgotten only for another vehicle. the views from outside + // (freefly, the views of the consist) put the camera at any vehicle of the train, one with an active cab of its own too: they + // follow the train driven, so going round them doesn't wipe the insects and the memory of the blades + TDynamicObject const *owner = FreeFlyModeFlag ? nullptr : Global.pCamera.m_owner; if ((owner == nullptr) || (owner->physics->CabActive == 0)) owner = (simulation::Train != nullptr) ? simulation::Train->Dynamic() : nullptr; if (owner != m_wipervehicle) diff --git a/rendering/vulkan14/vulkan14frame.cpp b/rendering/vulkan14/vulkan14frame.cpp index 1b66ce0be..7f91c41b7 100644 --- a/rendering/vulkan14/vulkan14frame.cpp +++ b/rendering/vulkan14/vulkan14frame.cpp @@ -1573,8 +1573,10 @@ void vulkan14_renderer::render_viewport(std::size_t const Index) } // the wipers of the vehicle the camera is in, or of the train driven when the camera is outside it: the moments the blades // were at the ends of their sweep (the drops on the glass come back from then) are kept while the camera is away, so the glass - // looks as the blades left it when it's back in the cab. they're forgotten only for another vehicle - TDynamicObject const *owner = Global.pCamera.m_owner; + // looks as the blades left it when it's back in the cab. they're forgotten only for another vehicle. the views from outside + // (freefly, the views of the consist) put the camera at any vehicle of the train, one with an active cab of its own too: they + // follow the train driven, so going round them doesn't wipe the insects and the memory of the blades + TDynamicObject const *owner = FreeFlyModeFlag ? nullptr : Global.pCamera.m_owner; if ((owner == nullptr) || (owner->physics->CabActive == 0)) owner = (simulation::Train != nullptr) ? simulation::Train->Dynamic() : nullptr; if (owner != m_wipervehicle)