Salome HOME
Fix jumping of a circle built by three points
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintPerpendicular.cpp
index eb9ec92f5866d8ba552b5e798bfcfd88bfaf8ed6..c03277b093b951420d25da99fa6ebc759428f2d5 100644 (file)
@@ -41,10 +41,8 @@ AISObjectPtr SketchPlugin_ConstraintPerpendicular::getAISObject(AISObjectPtr the
   if (!sketch())
     return thePrevious;
 
-  AISObjectPtr anAIS = thePrevious;
-  if (!anAIS) {
-    anAIS = SketcherPrs_Factory::perpendicularConstraint(this, sketch()->coordinatePlane());
-  }
+  AISObjectPtr anAIS = SketcherPrs_Factory::perpendicularConstraint(this,
+    sketch()->coordinatePlane(), thePrevious);
   return anAIS;
 }