PartDesign module moving float -> double

This commit is contained in:
jrheinlaender
2013-03-25 17:42:29 +04:30
parent 4c0781a555
commit 8df84e76c4
13 changed files with 35 additions and 35 deletions

View File

@@ -61,11 +61,11 @@ using namespace PartDesign;
PROPERTY_SOURCE(PartDesign::Draft, PartDesign::DressUp)
const App::PropertyFloatConstraint::Constraints floatAngle = {0.0f,89.99f,0.1f};
const App::PropertyFloatConstraint::Constraints floatAngle = {0.0,89.9,0.1};
Draft::Draft()
{
ADD_PROPERTY(Angle,(1.5f));
ADD_PROPERTY(Angle,(1.5));
Angle.setConstraints(&floatAngle);
ADD_PROPERTY_TYPE(NeutralPlane,(0),"Draft",(App::PropertyType)(App::Prop_None),"NeutralPlane");
ADD_PROPERTY_TYPE(PullDirection,(0),"Draft",(App::PropertyType)(App::Prop_None),"PullDirection");
@@ -104,7 +104,7 @@ App::DocumentObjectExecReturn *Draft::execute(void)
return new App::DocumentObjectExecReturn("No faces specified");
// Draft angle
float angle = Angle.getValue() / 180.0 * M_PI;
double angle = Angle.getValue() / 180.0 * M_PI;
// Pull direction
gp_Dir pullDirection;