Sketcher: Basic symmetry for angle constraint

Fixes #0002804
This commit is contained in:
Abdullah Tahiri
2017-04-12 16:14:26 +02:00
committed by wmayer
parent b2c2e3ffda
commit b6833e882e

View File

@@ -2615,6 +2615,7 @@ int SketchObject::addSymmetric(const std::vector<int> &geoIdList, int refGeoId,
(*it)->Type == Sketcher::Distance ||
(*it)->Type == Sketcher::Equal ||
(*it)->Type == Sketcher::Radius ||
(*it)->Type == Sketcher::Angle ||
(*it)->Type == Sketcher::PointOnObject ){
Constraint *constNew = (*it)->copy();
@@ -2635,6 +2636,10 @@ int SketchObject::addSymmetric(const std::vector<int> &geoIdList, int refGeoId,
if (constNew->Type == Tangent || constNew->Type == Perpendicular)
AutoLockTangencyAndPerpty(constNew,true);
if( ((*it)->Type == Sketcher::Angle) && (refPosId == Sketcher::none)) {
constNew->setValue(-(*it)->getValue());
}
newconstrVals.push_back(constNew);
}