Salome HOME
External edges color should not be changed when sketch is fully constrained.
[modules/shaper.git] / src / PartSet / PartSet_OverconstraintListener.cpp
index d0de78c04d9b6eb02430594c34384ccd382d4b1d..2fd930ca72643356bb5882aed156e81e801d269d 100755 (executable)
@@ -79,7 +79,8 @@ void PartSet_OverconstraintListener::getCustomColor(const ObjectPtr& theObject,
   if (myIsFullyConstrained) {
     FeaturePtr aFeature = ModelAPI_Feature::feature(theObject);
     // only entity features has custom color when sketch is fully constrained
-    if (aFeature.get() && PartSet_SketcherMgr::isEntity(aFeature->getKind())) {
+    if (aFeature.get() && PartSet_SketcherMgr::isEntity(aFeature->getKind()) &&
+        !PartSet_SketcherMgr::isExternalFeature(aFeature)) {
       PartSet_Module* aModule = module();
       CompositeFeaturePtr aSketch = aModule->sketchMgr()->activeSketch();
       // the given object is sub feature of the current sketch(created or edited)