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.
This commit is contained in:
Abdullah Tahiri
2019-06-22 23:12:19 +02:00
committed by abdullahtahiriyo
parent 7d0f8e2fa9
commit 9fd2a2d9ff

View File

@@ -5197,7 +5197,7 @@ int SketchObject::carbonCopy(App::DocumentObject * pObj, bool construction)
for (std::vector<Part::Geometry *>::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);