From: dbv Date: Fri, 2 Nov 2018 14:25:34 +0000 (+0300) Subject: Pass geometrical flag to selector. X-Git-Tag: End2018~197 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e24544d93758809692dc8df58c108514147798da;p=modules%2Fshaper.git Pass geometrical flag to selector. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 7cf468c5b..7abe5fa37 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -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); diff --git a/src/Model/Model_AttributeSelectionList.h b/src/Model/Model_AttributeSelectionList.h index 7e0736fe8..ef33f6b16 100644 --- a/src/Model/Model_AttributeSelectionList.h +++ b/src/Model/Model_AttributeSelectionList.h @@ -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 > > 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