Part: Fix multiplication result converted to larger type
This commit is contained in:
@@ -289,7 +289,8 @@ void ViewProviderSplineExtension::showControlPointsOfFace(const TopoDS_Face& fac
|
||||
return; // nothing to do
|
||||
|
||||
SoCoordinate3 * coords = new SoCoordinate3;
|
||||
coords->point.setNum(nCtU * nCtV + knots.size());
|
||||
coords->point.setNum((static_cast<float>(nCtU) * static_cast<float>(nCtV)) +
|
||||
static_cast<float>(knots.size()));
|
||||
|
||||
int index=0;
|
||||
SbVec3f* verts = coords->point.startEditing();
|
||||
|
||||
Reference in New Issue
Block a user