Salome HOME
Issue #2024 Redesign of circle and arc of circle: test correction(reason: center...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintRigid.cpp
index 741674a5b9429e461ffa6cf1da6bbca6f7d00029..fe5453aa4e8dd0bb2a6d5b76c85f1ea07d9034d8 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "SketchPlugin_ConstraintRigid.h"
 #include "SketchPlugin_ConstraintParallel.h"
+#include "SketchPlugin_Feature.h"
 
 #include <SketcherPrs_Factory.h>
 
@@ -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