X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeSelection.cpp;h=c985315b41dff61020b9533ef23bc5452e840e85;hb=d89f75e098187bbc135d3d7b0d3a5340cd5c997d;hp=a5ec3df3217fbcfda3c0a194ecb33a1d967318f9;hpb=ece2e7c31810af283e8a526521a425281798eefe;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index a5ec3df32..c985315b4 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1642,7 +1642,8 @@ void Model_AttributeSelection::updateInHistory(bool& theRemove) continue; if (isWholeResult && aNewValues.Value().IsNull()) - if ((*aNewCont)->shape()->shapeType() != allowedType) + if (allowedType != GeomAPI_Shape::SHAPE && + (*aNewCont)->shape()->shapeType() != allowedType) continue; // there is better result exists with the better shape type (issue #3031) GeomShapePtr aValueShape;