]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19137: Set purple color for projected lines
authorvsv <vsv@opencascade.com>
Wed, 27 May 2020 16:06:00 +0000 (19:06 +0300)
committervsv <vsv@opencascade.com>
Wed, 27 May 2020 16:06:00 +0000 (19:06 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 6541ba26f0be2533f565c8aca30d1f7a6d1cb79c..b1095873f46ead0e9b88b0e585019c5a97b8cdd7 100644 (file)
@@ -2272,14 +2272,15 @@ std::vector<int> PartSet_SketcherMgr::colorOfObject(const ObjectPtr& theObject,
   if (isDistanceKind(aKind)) {
     return Config_PropManager::color("Visualization", "sketch_dimension_color");
   }
+  if (isExternal(theFeature))
+    return Config_PropManager::color("Visualization", "sketch_external_color");
+
   if (aOCListener->isFullyConstrained()) {
     return Config_PropManager::color("Visualization", "sketch_fully_constrained_color");
   }
   if (aKind == SketchPlugin_ConstraintCoincidence::ID())
     return std::vector<int>(3, 0);
 
-  if (isExternal(theFeature))
-    return Config_PropManager::color("Visualization", "sketch_external_color");
   if (isConstruction)
     return Config_PropManager::color("Visualization", "sketch_auxiliary_color");