Mod: [skip ci] fix some MSVC warnings
This commit is contained in:
@@ -56,7 +56,7 @@ Mesh::Extension3MF::Resource ThumbnailExtension3MF::addMesh(const Mesh::MeshObje
|
||||
|
||||
ViewProviderMeshBuilder().createMesh(mesh.getKernel(), coord, faces);
|
||||
|
||||
SbRotation rot(-0.353553, -0.146447, -0.353553, -0.853553);
|
||||
SbRotation rot(-0.35355f, -0.14644f, -0.35355f, -0.85355f);
|
||||
cam->orientation.setValue(rot);
|
||||
SbViewportRegion vpr(256, 256);
|
||||
cam->viewAll(root, vpr);
|
||||
|
||||
@@ -132,7 +132,7 @@ PyObject *BlendPointPy::setSize(PyObject *args)
|
||||
getBlendPointPtr()->setSize(size);
|
||||
Py_Return;
|
||||
}
|
||||
catch (Standard_Failure &e) {
|
||||
catch (Standard_Failure &) {
|
||||
PyErr_SetString(Base::PyExc_FC_CADKernelError, "Failed to set size");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ void GeometryObject::projectShape(const TopoDS_Shape& inShape,
|
||||
hidIso = invertGeometry(hidIso);
|
||||
}
|
||||
}
|
||||
catch (const Standard_Failure& e) {
|
||||
catch (const Standard_Failure&) {
|
||||
throw Base::RuntimeError("GeometryObject::projectShape - OCC error occurred while extracting edges");
|
||||
}
|
||||
catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user