]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #19137: Fix sketch dimension color
authorvsv <vsv@opencascade.com>
Thu, 21 May 2020 16:10:46 +0000 (19:10 +0300)
committervsv <vsv@opencascade.com>
Thu, 21 May 2020 16:10:46 +0000 (19:10 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 292c13596791564f3114ef9858f6b072ddc251a6..6541ba26f0be2533f565c8aca30d1f7a6d1cb79c 100644 (file)
@@ -2269,12 +2269,12 @@ std::vector<int> PartSet_SketcherMgr::colorOfObject(const ObjectPtr& theObject,
   if (aOCListener->isConflictingObject(theObject)) {
     return Config_PropManager::color("Visualization", "sketch_overconstraint_color");
   }
-  if (aOCListener->isFullyConstrained()) {
-    return Config_PropManager::color("Visualization", "sketch_fully_constrained_color");
-  }
   if (isDistanceKind(aKind)) {
     return Config_PropManager::color("Visualization", "sketch_dimension_color");
   }
+  if (aOCListener->isFullyConstrained()) {
+    return Config_PropManager::color("Visualization", "sketch_fully_constrained_color");
+  }
   if (aKind == SketchPlugin_ConstraintCoincidence::ID())
     return std::vector<int>(3, 0);