Sketcher: Clone: do not apply parallel constraint if angle constraint is applied on arc
This commit is contained in:
committed by
abdullahtahiriyo
parent
300ca5b206
commit
8a574f5a51
@@ -4302,13 +4302,15 @@ int SketchObject::addCopy(const std::vector<int> &geoIdList, const Base::Vector3
|
||||
constNew->Second = fit->second; // first is already (*it->First)
|
||||
newconstrVals.push_back(constNew);
|
||||
}
|
||||
else if ((*it)->Type == Sketcher::Angle && clone){
|
||||
// Angles on a single Element are mapped to parallel constraints in clone mode
|
||||
Constraint *constNew = (*it)->copy();
|
||||
constNew->Type = Sketcher::Parallel;
|
||||
constNew->isDriving = true;
|
||||
constNew->Second = fit->second; // first is already (*it->First)
|
||||
newconstrVals.push_back(constNew);
|
||||
else if ((*it)->Type == Sketcher::Angle && clone) {
|
||||
if (getGeometry((*it)->First)->getTypeId() == Part::GeomLineSegment::getClassTypeId()) {
|
||||
// Angles on a single Element are mapped to parallel constraints in clone mode
|
||||
Constraint *constNew = (*it)->copy();
|
||||
constNew->Type = Sketcher::Parallel;
|
||||
constNew->isDriving = true;
|
||||
constNew->Second = fit->second; // first is already (*it->First)
|
||||
newconstrVals.push_back(constNew);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Constraint *constNew = (*it)->copy();
|
||||
|
||||
Reference in New Issue
Block a user