Finally fixing the highlight code

This commit is contained in:
jriegel
2012-04-01 15:02:40 +02:00
committed by Stefan Tröger
parent bd1d5525ca
commit d9b6c03304
5 changed files with 39 additions and 37 deletions

View File

@@ -464,7 +464,7 @@ Py::Object View3DInventorPy::viewRotateLeft(const Py::Tuple& args)
SbRotation rot = cam->orientation.getValue();
SbVec3f vdir(0, 0, -1);
rot.multVec(vdir, vdir);
SbRotation nrot(vdir,float( M_PI/2));
SbRotation nrot(vdir, (float)M_PI/2);
cam->orientation.setValue(rot*nrot);
}
catch (const Base::Exception& e) {
@@ -490,7 +490,7 @@ Py::Object View3DInventorPy::viewRotateRight(const Py::Tuple& args)
SbRotation rot = cam->orientation.getValue();
SbVec3f vdir(0, 0, -1);
rot.multVec(vdir, vdir);
SbRotation nrot(vdir, float(-M_PI/2));
SbRotation nrot(vdir, (float)-M_PI/2);
cam->orientation.setValue(rot*nrot);
}
catch (const Base::Exception& e) {