diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index 9fe2c114a1..f5f5beffae 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -1377,7 +1377,7 @@ AttachEngine3D::_calculateAttachedPlacement(const std::vector &objs, const std::vector &subs, const Base::Placement &origPlacement) const override; + static double planarPrecision(); }; //attacher specialized for datum lines diff --git a/src/Mod/Part/App/Part2DObject.cpp b/src/Mod/Part/App/Part2DObject.cpp index 0f363bbe0d..dd818c4227 100644 --- a/src/Mod/Part/App/Part2DObject.cpp +++ b/src/Mod/Part/App/Part2DObject.cpp @@ -60,7 +60,9 @@ PROPERTY_SOURCE_WITH_EXTENSIONS(Part::Part2DObject, Part::Feature) Part2DObject::Part2DObject() { AttachExtension::initExtension(this); - this->setAttacher(new Attacher::AttachEnginePlane); + auto engine = new Attacher::AttachEnginePlane; + engine->precision = Attacher::AttachEnginePlane::planarPrecision(); + this->setAttacher(engine); } diff --git a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp index 19ef91df16..3b10347b58 100644 --- a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp +++ b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp @@ -141,7 +141,7 @@ public: throw WrongSupportException(); } - if (!subshape.isPlanar()) { + if (!subshape.isPlanar(Attacher::AttachEnginePlane::planarPrecision())) { throw SupportNotPlanarException(); } }