]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Pass geometrical flag to selector.
authordbv <dbv@opencascade.com>
Fri, 2 Nov 2018 14:25:34 +0000 (17:25 +0300)
committermpv <mpv@opencascade.com>
Mon, 19 Nov 2018 08:45:52 +0000 (11:45 +0300)
src/Model/Model_AttributeSelection.cpp
src/Model/Model_AttributeSelectionList.h

index 7cf468c5bb7bd165788254ec06a5b9d51ceaa90b..7abe5fa37c5253c4f864f59439596155fbf186b3 100644 (file)
@@ -675,7 +675,7 @@ void Model_AttributeSelection::selectBody(
         (ModelAPI_Session::get()->moduleDocument())->extConstructionsLabel());
     }
     try {
-      aSelectorOk = aSel.select(aContext, aNewSub);
+      aSelectorOk = aSel.select(aContext, aNewSub, myIsGeometricalSelection);
       if (aSelectorOk) {
         aSel.store();
         aSelectorOk = aSel.solve(aContext);
index 7e0736fe836a496485a913a9455348321fdb1ffd..ef33f6b165b97a8cd6a76ce2c6b18b90c3961901 100644 (file)
@@ -45,6 +45,8 @@ class Model_AttributeSelectionList : public ModelAPI_AttributeSelectionList
   /// the cashed shapes to optimize isInList method: from context to set of shapes in this context
   std::map<ResultPtr, std::list<std::shared_ptr<GeomAPI_Shape> > > myCash;
   bool myIsCashed; ///< true if cashing is performed
+  /// If true attribute selects geometry instead of shape.
+  bool myIsGeometricalSelection;
 public:
   /// Adds the new reference to the end of the list
   /// \param theContext object where the sub-shape was selected