[PD] make constraints static class member

the MSVC IDE warned me about different floatAngle definitions in PD
This commit is contained in:
donovaly
2021-03-03 13:53:22 +01:00
committed by wwmayer
parent 42bf2c8285
commit 3704ad68d8
4 changed files with 8 additions and 4 deletions

View File

@@ -53,8 +53,8 @@ using namespace PartDesign;
PROPERTY_SOURCE(PartDesign::Chamfer, PartDesign::DressUp)
const char* ChamferTypeEnums[] = {"Equal distance", "Two distances", "Distance and Angle", NULL};
const App::PropertyQuantityConstraint::Constraints floatSize = {0.0,FLT_MAX,0.1};
const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,1.0};
const App::PropertyQuantityConstraint::Constraints Chamfer::floatSize = {0.0, FLT_MAX, 0.1};
const App::PropertyAngle::Constraints Chamfer::floatAngle = {0.0, 180.0, 1.0};
static App::DocumentObjectExecReturn *validateParameters(int chamferType, double size, double size2, double angle);