X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Tools.cpp;h=8923fd6e13bf01788622a586a564361eccb44709;hb=b519afb1eed5da2e6dd09519543cb81b7fca020a;hp=7931f0dcae2a8e34eb8a91c1987348a9a8b1f98f;hpb=cb3b1befb8fa7b3067d9263f94391108429d691a;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index 7931f0dca..8923fd6e1 100644 --- a/src/ModelHighAPI/ModelHighAPI_Tools.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Tools.cpp @@ -173,6 +173,13 @@ void fillAttribute(const std::list & theValue, const std::shared_ptr & theAttribute) { theAttribute->clear(); + + if(!theValue.empty()) { + std::string aSelectionType; + const ModelHighAPI_Selection& aSelection = theValue.front(); + theAttribute->setSelectionType(aSelection.shapeType()); + } + for (auto it = theValue.begin(); it != theValue.end(); ++it) it->appendToList(theAttribute); }