From: vsv Date: Wed, 8 Jul 2015 13:48:22 +0000 (+0300) Subject: Hide sketcher in Composite Boolean operation X-Git-Tag: V_1.3.0~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed4ac37cbf8f2c8e5665ff6251c9e21e4b8c497e;p=modules%2Fshaper.git Hide sketcher in Composite Boolean operation --- 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