Salome HOME
Task #3005 : To be able to create a group on a whole result. Initial ability from...
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_Group.cpp
index cd5ef4108a6b27548f44d1dde74f2c319c8e0d81..82926ab21921946ac76ac567b84f900ec9eb16bb 100644 (file)
@@ -32,8 +32,9 @@ CollectionPlugin_Group::CollectionPlugin_Group()
 
 void CollectionPlugin_Group::initAttributes()
 {
-  data()->addAttribute(CollectionPlugin_Group::LIST_ID(),
-                       ModelAPI_AttributeSelectionList::typeId());
+  AttributeSelectionListPtr aList = std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(
+    data()->addAttribute(LIST_ID(), ModelAPI_AttributeSelectionList::typeId()));
+  aList->setWholeResultAllowed(true); // allow to select the whole result
 }
 
 void CollectionPlugin_Group::execute()