update idf import and small fixes

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5432 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
jriegel
2012-02-05 16:32:29 +00:00
parent 2b36d3aba8
commit 2ecbd6b851
14 changed files with 32644 additions and 16176 deletions

View File

@@ -419,7 +419,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, M_PI/2);
SbRotation nrot(vdir,float( M_PI/2));
cam->orientation.setValue(rot*nrot);
}
catch (const Base::Exception& e) {
@@ -445,7 +445,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, -M_PI/2);
SbRotation nrot(vdir, float(-M_PI/2));
cam->orientation.setValue(rot*nrot);
}
catch (const Base::Exception& e) {