Sketcher: using copy in addGeometry instead of clone to avoid that python users inadvertendly generate two geometries with the same Geometry tag
This commit is contained in:
@@ -642,7 +642,7 @@ int SketchObject::addGeometry(const Part::Geometry *geo, bool construction/*=fal
|
||||
const std::vector< Part::Geometry * > &vals = getInternalGeometry();
|
||||
|
||||
std::vector< Part::Geometry * > newVals(vals);
|
||||
Part::Geometry *geoNew = geo->clone();
|
||||
Part::Geometry *geoNew = geo->copy();
|
||||
|
||||
if(geoNew->getTypeId() != Part::GeomPoint::getClassTypeId())
|
||||
geoNew->Construction = construction;
|
||||
|
||||
Reference in New Issue
Block a user