Removed unnecessary boundary check for FloatConstraint property

This commit is contained in:
jrheinlaender
2012-11-28 09:03:00 +04:30
committed by wmayer
parent 4fcbc4f3f1
commit 7a9fdf444c

View File

@@ -101,10 +101,7 @@ App::DocumentObjectExecReturn *Draft::execute(void)
return new App::DocumentObjectExecReturn("No faces specified");
// Draft angle
float angle = Angle.getValue();
if ((angle < 0.0) || (angle >= 90.0))
return new App::DocumentObjectExecReturn("Draft angle must be between 0 and 90 degrees");
angle = angle / 180.0 * M_PI;
float angle = Angle.getValue() / 180.0 * M_PI;
// Pull direction
gp_Dir pullDirection;