From: azv Date: Fri, 17 Apr 2015 11:02:33 +0000 (+0300) Subject: Use external object as a mirror line X-Git-Tag: V_1.1.0~13^2~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b535886bb44e5760a1b39439284b9a51bb9c1c0;p=modules%2Fshaper.git Use external object as a mirror line --- diff --git a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp index c27000bd1..6bb2a9088 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp @@ -189,6 +189,8 @@ void SketchSolver_ConstraintMirror::process() // Set the mirror line unchanged during constraint recalculation for (int i = 0; i < 2; i++) { + if (myStorage->isPointFixed(aMirrorLine.point[i], aConstraint.h, true)) + continue; aConstraint = Slvs_MakeConstraint( SLVS_E_UNKNOWN, myGroup->getId(), SLVS_C_WHERE_DRAGGED, myGroup->getWorkplaneId(), 0.0, aMirrorLine.point[i], SLVS_E_UNKNOWN, SLVS_E_UNKNOWN, SLVS_E_UNKNOWN);