diff --git a/src/gui/plugins/scene3d/Scene3D.cc b/src/gui/plugins/scene3d/Scene3D.cc index ab85034298..30345f5187 100644 --- a/src/gui/plugins/scene3d/Scene3D.cc +++ b/src/gui/plugins/scene3d/Scene3D.cc @@ -1644,10 +1644,6 @@ void IgnRenderer::HandleMouseViewControl() << std::endl; } - math::Vector3d camWorldPos; - if (!this->dataPtr->followTarget.empty()) - this->dataPtr->camera->WorldPosition(); - this->dataPtr->viewControl.SetCamera(this->dataPtr->camera); if (this->dataPtr->mouseEvent.Type() == common::MouseEvent::SCROLL) @@ -1700,13 +1696,7 @@ void IgnRenderer::HandleMouseViewControl() if (!this->dataPtr->followTarget.empty()) - { - math::Vector3d dPos = this->dataPtr->camera->WorldPosition() - camWorldPos; - if (dPos != math::Vector3d::Zero) - { - this->dataPtr->followOffsetDirty = true; - } - } + this->dataPtr->followOffsetDirty = true; } /////////////////////////////////////////////////