From 23d518be6ee87160b8fc67480e4d946c004b3d88 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Oct 2004 11:56:09 +0000 Subject: [PATCH] Fixed precision of center computation. --- src/osgGA/NodeTrackerManipulator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgGA/NodeTrackerManipulator.cpp b/src/osgGA/NodeTrackerManipulator.cpp index 470127b24..c8f207a2d 100644 --- a/src/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgGA/NodeTrackerManipulator.cpp @@ -352,7 +352,7 @@ void NodeTrackerManipulator::computeNodeCenterAndRotation(osg::Vec3d& nodeCenter computeNodeLocalToWorld(localToWorld); if (validateNodePath()) - nodeCenter = _trackNodePath.back()->getBound().center()*localToWorld; + nodeCenter = osg::Vec3d(_trackNodePath.back()->getBound().center())*localToWorld; else nodeCenter = osg::Vec3d(0.0f,0.0f,0.0f)*localToWorld; @@ -547,7 +547,7 @@ bool NodeTrackerManipulator::calcMovement() else if (buttonMask==GUIEventAdapter::MIDDLE_MOUSE_BUTTON || buttonMask==(GUIEventAdapter::LEFT_MOUSE_BUTTON|GUIEventAdapter::RIGHT_MOUSE_BUTTON)) { - +/* // pan model. double scale = -0.3f*_distance; @@ -637,7 +637,7 @@ bool NodeTrackerManipulator::calcMovement() osg::notify(osg::INFO)<<"New up orientation nearly inline - no need to rotate"<