]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Minor fix for the issue #3031
authormpv <mpv@opencascade.com>
Thu, 3 Oct 2019 15:59:24 +0000 (18:59 +0300)
committermpv <mpv@opencascade.com>
Thu, 3 Oct 2019 15:59:24 +0000 (18:59 +0300)
src/Model/Model_AttributeSelection.cpp

index a5ec3df3217fbcfda3c0a194ecb33a1d967318f9..c985315b41dff61020b9533ef23bc5452e840e85 100644 (file)
@@ -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;