X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintRigid.cpp;h=ff52e577437e5f8db91ae8a17077de087fa94395;hb=d3883990177d27a12b8a2278cdbb82250ff19b79;hp=6082f2fd41cb57e3d3ee3e517612888cf725ca56;hpb=0e2f538e6c7a2a210120b9258aa9da7108035dbe;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintRigid.cpp b/src/SketchSolver/SketchSolver_ConstraintRigid.cpp index 6082f2fd4..ff52e5774 100644 --- a/src/SketchSolver/SketchSolver_ConstraintRigid.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintRigid.cpp @@ -37,8 +37,12 @@ void SketchSolver_ConstraintRigid::process() getAttributes(aValue, anEntities); if (!myErrorMsg.empty() || (myFeatureMap.empty() && myAttributeMap.empty())) return; + fixFeature(); +} - Slvs_hEntity anEntID; +void SketchSolver_ConstraintRigid::fixFeature() +{ + Slvs_hEntity anEntID; if (!myFeatureMap.empty()) anEntID = myFeatureMap.begin()->second; else