Sketcher: addGeometry : Remove point construction limitation.

This commit is contained in:
PaddleStroke
2024-08-06 08:40:43 +02:00
committed by Yorik van Havre
parent 33e00078a5
commit 3db4633f9d
3 changed files with 4 additions and 14 deletions

View File

@@ -1549,12 +1549,7 @@ int SketchObject::addGeometry(const std::vector<Part::Geometry*>& geoList,
Part::Geometry* copy = v->copy();
generateId(copy);
if (copy->is<Part::GeomPoint>()) {
// creation mode for points is always construction not to
// break legacy code
GeometryFacade::setConstruction(copy, true);
}
else if (construction) {
if (construction) {
GeometryFacade::setConstruction(copy, construction);
}
@@ -1588,12 +1583,7 @@ int SketchObject::addGeometry(std::unique_ptr<Part::Geometry> newgeo, bool const
auto* geoNew = newgeo.release();
generateId(geoNew);
if (geoNew->is<Part::GeomPoint>()) {
// creation mode for points is always construction not to
// break legacy code
GeometryFacade::setConstruction(geoNew, true);
}
else if (construction) {
if (construction) {
GeometryFacade::setConstruction(geoNew, construction);
}