From 9d6abb1f06ba71fae3a719a96f377e1a8566a59e Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 15 Feb 2018 11:16:25 +0300 Subject: [PATCH] Issue #2433 Vertex not named in group creation if a field is displayed --- src/PartSet/PartSet_Filters.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_Filters.cpp b/src/PartSet/PartSet_Filters.cpp index b827302b1..ffc6b2746 100644 --- a/src/PartSet/PartSet_Filters.cpp +++ b/src/PartSet/PartSet_Filters.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -59,10 +60,12 @@ Standard_Boolean PartSet_GlobalFilter::IsOk(const Handle(SelectMgr_EntityOwner)& // result of parts belongs to PartSet document and can be selected only when PartSet // is active in order to do not select the result of the active part. if (aResult.get()) { - if (aResult->groupName() == ModelAPI_ResultPart::group()) { + std::string aResultGroupName = aResult->groupName(); + if (aResultGroupName == ModelAPI_ResultPart::group()) { SessionPtr aMgr = ModelAPI_Session::get(); aValid = aMgr->activeDocument() == aMgr->moduleDocument(); - } else if (aResult->groupName() == ModelAPI_ResultGroup::group()) { + } else if (aResultGroupName == ModelAPI_ResultGroup::group() || + aResultGroupName == ModelAPI_ResultField::group()) { aValid = Standard_False; } else aValid = Standard_True; -- 2.39.2