PartDesign/FeatureDraft: fix a wronly placed NOT
This commit is contained in:
committed by
Stefan Tröger
parent
b9f4e10fa5
commit
b67c8bd34d
@@ -225,7 +225,7 @@ App::DocumentObjectExecReturn *Draft::execute(void)
|
||||
if (refEdge.IsNull())
|
||||
throw Base::Exception("Failed to extract neutral plane reference edge");
|
||||
BRepAdaptor_Curve c(refEdge);
|
||||
if (c.GetType() != GeomAbs_Line)
|
||||
if (c.GetType() != GeomAbs_Line)
|
||||
throw Base::Exception("Neutral plane reference edge must be linear");
|
||||
double a = c.Line().Angle(gp_Lin(c.Value(c.FirstParameter()), pullDirection));
|
||||
if (std::fabs(a - M_PI_2) > Precision::Confusion())
|
||||
|
||||
Reference in New Issue
Block a user