X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintAngle.cpp;h=f4207163b241f406bbe39f35116326f883fbaf44;hb=4f565b2204d3fba046aa8c851abada2a5a17bf6c;hp=6138e3062cf3cb2f0b00ca4d6935a7edd35900b2;hpb=55baa15e9a78ff2b9de61f2034c4406197eff2eb;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintAngle.cpp b/src/SketchSolver/SketchSolver_ConstraintAngle.cpp index 6138e3062..f4207163b 100644 --- a/src/SketchSolver/SketchSolver_ConstraintAngle.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintAngle.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #include #include @@ -6,6 +8,10 @@ #include #include +#include + +#include + #include void SketchSolver_ConstraintAngle::getAttributes( @@ -14,6 +20,7 @@ void SketchSolver_ConstraintAngle::getAttributes( SketchSolver_Constraint::getAttributes(theValue, theAttributes); myAngle = theValue; + myType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value(); } @@ -28,4 +35,10 @@ void SketchSolver_ConstraintAngle::adjustConstraint() myAngle = aConstraint->value(); aBuilder->adjustConstraint(aConstraint); myStorage->addConstraint(myBaseConstraint, aConstraint); + + int aType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value(); + if (aType != myType) { + myType = aType; + myStorage->setNeedToResolve(true); + } }