From d89f75e098187bbc135d3d7b0d3a5340cd5c997d Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 3 Oct 2019 18:59:24 +0300 Subject: [PATCH] Minor fix for the issue #3031 --- src/Model/Model_AttributeSelection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2