We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3522f58 commit 7d70b31Copy full SHA for 7d70b31
src/Interface/Modules/Render/ES/SRCamera.cc
@@ -205,9 +205,13 @@ namespace SCIRun {
205
//----------------------------------------------------------------------------------------------
206
void SRCamera::tryAutoRotate()
207
{
208
- mArcLookAt->doReferenceDown(lastMousePos);
209
- mArcLookAt->doRotation(lastMousePos + autoRotateVec);
210
- setClippingPlanes();
+ const static double epsilon = 0.02e-12;
+ if (glm::length(autoRotateVec) > epsilon)
+ {
211
+ mArcLookAt->doReferenceDown(lastMousePos);
212
+ mArcLookAt->doRotation(lastMousePos + autoRotateVec);
213
+ setClippingPlanes();
214
+ }
215
}
216
217
0 commit comments