]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide sketcher in Composite Boolean operation
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 8 Jul 2015 13:48:22 +0000 (16:48 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 8 Jul 2015 13:48:37 +0000 (16:48 +0300)
src/PartSet/PartSet_WidgetSketchCreator.cpp

index 1c4fbeddf1b5d11a6418a6e900cc403f9b152fbd..a5d9cddb13958f9ebfd58a3aad2afd58ea5f32a2 100644 (file)
@@ -164,6 +164,15 @@ void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp)
       aMgr->abortOperation();
     theOp->abort();
   } else {
+    // Hide sketcher result
+    std::list<ResultPtr> aResults = aSketchFeature->results();
+    std::list<ResultPtr>::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<ModelAPI_AttributeSelection>