From ed4ac37cbf8f2c8e5665ff6251c9e21e4b8c497e Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 8 Jul 2015 16:48:22 +0300 Subject: [PATCH] Hide sketcher in Composite Boolean operation --- src/PartSet/PartSet_WidgetSketchCreator.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 1c4fbeddf..a5d9cddb1 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -164,6 +164,15 @@ void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp) aMgr->abortOperation(); theOp->abort(); } else { + // Hide sketcher result + std::list aResults = aSketchFeature->results(); + std::list::const_iterator aIt; + for (aIt = aResults.begin(); aIt != aResults.end(); ++aIt) { + (*aIt)->setDisplayed(false); + } + aSketchFeature->setDisplayed(false); + + // Add Selected body were created the sketcher to list of selected objects DataPtr aData = aSketchFeature->data(); AttributeSelectionPtr aSelAttr = std::dynamic_pointer_cast -- 2.39.2