Salome HOME
Minor fix for the issue #3031
[modules/shaper.git] / 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;