]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Sketch selection in the browser for extrusion operation
authornds <natalia.donis@opencascade.com>
Wed, 18 Mar 2015 11:53:52 +0000 (14:53 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 18 Mar 2015 11:53:52 +0000 (14:53 +0300)
An empty shape for the sketch result

src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 2b1dd47ad04821777b119eb78c1f92b6dfa65b3c..22145d36f37be5a36554711d88753fe57919806a 100644 (file)
@@ -257,8 +257,8 @@ void ModuleBase_WidgetMultiSelector::onSelectionChanged()
       aShape->setImpl(new TopoDS_Shape(aShpIt.Value()));
 
       if (aShape->isEqual(aResult->shape())) {
-        aShape = std::shared_ptr<GeomAPI_Shape>(new GeomAPI_Shape());
-        mySelection.append(GeomSelection(aResult, aShape));
+        //aShape = std::shared_ptr<GeomAPI_Shape>(new GeomAPI_Shape());
+        mySelection.append(GeomSelection(aResult, NULL));//aShape));
       }
       else
         mySelection.append(GeomSelection(aResult, aShape));