From 65b7e606e59043cdfd0b3ffcc68d7abc066f7fb2 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 24 Feb 2017 00:01:55 +0100 Subject: [PATCH] Sketcher: Construction points added as fixed parameters --- src/Mod/Sketcher/App/Sketch.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index 068dbd68ca..8142add219 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -199,7 +199,12 @@ int Sketch::addGeometry(const Part::Geometry *geo, bool fixed) if (geo->getTypeId() == GeomPoint::getClassTypeId()) { // add a point const GeomPoint *point = static_cast(geo); // create the definition struct for that geom - return addPoint(*point, fixed); + if( point->Construction == false ) { + return addPoint(*point, fixed); + } + else { + return addPoint(*point, true); + } } else if (geo->getTypeId() == GeomLineSegment::getClassTypeId()) { // add a line const GeomLineSegment *lineSeg = static_cast(geo); // create the definition struct for that geom @@ -252,8 +257,6 @@ int Sketch::addPoint(const Part::GeomPoint &point, bool fixed) // create our own copy GeomPoint *p = static_cast(point.clone()); - // points in a sketch are always construction elements - p->Construction = true; // create the definition struct for that geom GeoDef def; def.geo = p;