X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintRigid.cpp;h=fe5453aa4e8dd0bb2a6d5b76c85f1ea07d9034d8;hb=21a0c85b52bb93f94680e2342370764e6510e387;hp=741674a5b9429e461ffa6cf1da6bbca6f7d00029;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintRigid.cpp b/src/SketchPlugin/SketchPlugin_ConstraintRigid.cpp index 741674a5b..fe5453aa4 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintRigid.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintRigid.cpp @@ -6,6 +6,7 @@ #include "SketchPlugin_ConstraintRigid.h" #include "SketchPlugin_ConstraintParallel.h" +#include "SketchPlugin_Feature.h" #include @@ -32,11 +33,5 @@ AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious { if (!sketch()) return thePrevious; - - AISObjectPtr anAIS = thePrevious; - if (!anAIS) { - anAIS = SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane()); - } - - return anAIS; + return SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane(), thePrevious); } \ No newline at end of file