From e632e9feb8a9dd56d5a879f2afef636cc159095e Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sat, 22 Jun 2019 23:12:19 +0200 Subject: [PATCH] Sketcher: Fix carbon copy construction points ============================================= fixes #3926 Points made of construction type are special non-constrainable points, such as (current) bspline knots. This was not intended in Carbon Copy. --- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index e7b95f71db..fd284e45c4 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -5197,7 +5197,7 @@ int SketchObject::carbonCopy(App::DocumentObject * pObj, bool construction) for (std::vector::const_iterator it=svals.begin(); it != svals.end(); ++it){ Part::Geometry *geoNew = (*it)->copy(); - if(construction) { + if(construction && geoNew->getTypeId() != Part::GeomPoint::getClassTypeId()) { geoNew->Construction = true; } newVals.push_back(geoNew);