From 1ce79713042ed0837ebe4cc752be1a38e821e36a Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 29 Jan 2020 12:59:19 +0300 Subject: [PATCH] Fix of regression with width of external projection --- src/PartSet/PartSet_SketcherMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index cb916284b..27f9bf8d6 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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()); } -- 2.39.2