From d4fc0ceba323bc27a7e5f8d026bec83e43229a27 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Jun 2015 10:02:22 +0000 Subject: [PATCH] Philippe Renon, "Fixed potential divide by zero in NodeTrackerManipulator : The divide by zero happens when throwing a NodeTrackerManipulator. The infinite result trickles down and later causes NaN in culling. The fix was to use getThrowScale() as done everywhere else." git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14906 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgGA/NodeTrackerManipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgGA/NodeTrackerManipulator.cpp b/src/osgGA/NodeTrackerManipulator.cpp index 0155813af..bb98b10aa 100644 --- a/src/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgGA/NodeTrackerManipulator.cpp @@ -275,7 +275,7 @@ bool NodeTrackerManipulator::performMovementLeftMouseButton( const double eventT } else rotateTrackball( _ga_t0->getXnormalized(), _ga_t0->getYnormalized(), _ga_t1->getXnormalized(), _ga_t1->getYnormalized(), - _thrown ? float( _delta_frame_time / eventTimeDelta ) : 1.f ); + getThrowScale( eventTimeDelta ) ); return true; }