]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Change color of ellipse and elliptic arc when a sketch is fully constrained.
authorazv <azv@opencascade.com>
Tue, 1 Oct 2019 10:25:15 +0000 (13:25 +0300)
committerazv <azv@opencascade.com>
Tue, 1 Oct 2019 10:25:15 +0000 (13:25 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 69d6092e3d9fbd654606fdad8a2e651057dc8103..b8c25aa84205110b345f549f0f8132e18688a218 100644 (file)
@@ -70,6 +70,8 @@
 #include <SketchPlugin_Point.h>
 #include <SketchPlugin_Arc.h>
 #include <SketchPlugin_Circle.h>
+#include <SketchPlugin_Ellipse.h>
+#include <SketchPlugin_EllipticArc.h>
 #include <SketchPlugin_ConstraintLength.h>
 #include <SketchPlugin_ConstraintDistance.h>
 #include <SketchPlugin_ConstraintParallel.h>
@@ -957,7 +959,9 @@ bool PartSet_SketcherMgr::isEntity(const std::string& theId)
   return (theId == SketchPlugin_Line::ID()) ||
          (theId == SketchPlugin_Point::ID()) ||
          (theId == SketchPlugin_Arc::ID()) ||
-         (theId == SketchPlugin_Circle::ID());
+         (theId == SketchPlugin_Circle::ID()) ||
+         (theId == SketchPlugin_Ellipse::ID()) ||
+         (theId == SketchPlugin_EllipticArc::ID());
 }
 
 bool PartSet_SketcherMgr::isExternalFeature(const FeaturePtr& theFeature)