]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of regression with width of external projection
authorvsv <vsv@opencascade.com>
Wed, 29 Jan 2020 09:59:19 +0000 (12:59 +0300)
committervsv <vsv@opencascade.com>
Wed, 29 Jan 2020 09:59:19 +0000 (12:59 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index cb916284bcbbc890b272f8d09ec8650aafc9fe16..27f9bf8d61a593223c16b7043cdb389ed5f3d59a 100644 (file)
@@ -2271,8 +2271,9 @@ void PartSet_SketcherMgr::customizeSketchPresentation(const ObjectPtr& theObject
   if (aShapeType != 6/*an edge*/ && aShapeType != 7/*a vertex*/ && aShapeType != 0/*compound*/)
     return;
 
+  int aWidth = Config_PropManager::integer("Visualization", "sketch_line_width");
   if (isExternal(aFeature)) {
-    thePrs->setWidth(1);
+    thePrs->setWidth(isIncludeToResult(aFeature)? aWidth : 1);
     return;
   }
   std::string aKind = aFeature->getKind();
@@ -2286,7 +2287,6 @@ void PartSet_SketcherMgr::customizeSketchPresentation(const ObjectPtr& theObject
       thePrs->setLineStyle(SketchPlugin_SketchEntity::SKETCH_LINE_STYLE_AUXILIARY());
     }
     else {
-      int aWidth = Config_PropManager::integer("Visualization", "sketch_line_width");
       thePrs->setWidth(aWidth);
       thePrs->setLineStyle(SketchPlugin_SketchEntity::SKETCH_LINE_STYLE());
     }