From e24544d93758809692dc8df58c108514147798da Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 2 Nov 2018 17:25:34 +0300 Subject: [PATCH] Pass geometrical flag to selector. --- src/Model/Model_AttributeSelection.cpp | 2 +- src/Model/Model_AttributeSelectionList.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2