From: vsv Date: Wed, 27 May 2020 16:06:00 +0000 (+0300) Subject: bos #19137: Set purple color for projected lines X-Git-Tag: V9_5_0rc1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=daf31b7eb192ac4a1376c895a19a40fa35616d63;p=modules%2Fshaper.git bos #19137: Set purple color for projected lines --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 6541ba26f..b1095873f 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -2272,14 +2272,15 @@ std::vector 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(3, 0); - if (isExternal(theFeature)) - return Config_PropManager::color("Visualization", "sketch_external_color"); if (isConstruction) return Config_PropManager::color("Visualization", "sketch_auxiliary_color");