Build fix

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14439 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-09-08 08:53:23 +00:00
parent 23b8131ae5
commit 0db0bcdd5e

View File

@ -137,7 +137,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
_startedDrag = false; _startedDrag = false;
if (ea->getButtonMask()==osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON) if (ea->getButtonMask()==osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON)
{ {
osg::Vec3 position; osg::Vec3d position;
if (computePositionInLocalCoordinates(ev, ea, position)) if (computePositionInLocalCoordinates(ev, ea, position))
{ {
_startedDrag = true; _startedDrag = true;
@ -153,7 +153,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
// OSG_NOTICE<<"Dragged "<<std::endl; // OSG_NOTICE<<"Dragged "<<std::endl;
if (_startedDrag) if (_startedDrag)
{ {
osg::Vec3 position; osg::Vec3d position;
if (computePositionInLocalCoordinates(ev, ea, position)) if (computePositionInLocalCoordinates(ev, ea, position))
{ {
float delta = -(position.x()-_previousDragPosition); float delta = -(position.x()-_previousDragPosition);
@ -166,7 +166,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
break; break;
case(osgGA::GUIEventAdapter::SCROLL): case(osgGA::GUIEventAdapter::SCROLL):
{ {
osg::Vec3 position; osg::Vec3d position;
if (computePositionInLocalCoordinates(ev, ea, position)) if (computePositionInLocalCoordinates(ev, ea, position))
{ {
float translation = 0.0; float translation = 0.0;