Salome HOME
Implement filter "F6: On plane side"
[modules/shaper.git] / src / PythonAPI / model / tests / tests.py
index 17fd989ebadacdabb46b7053108995b156afd9fc..167f5c2bfb0522ee51289605f17c6587f833f9d0 100644 (file)
@@ -342,6 +342,8 @@ def checkFilter(thePartDoc, theModel, theFilter, theShapesList):
     needUndo = False
     if sel.variantType() == ModelHighAPI_Selection.VT_ResultSubShapePair:
       shape = sel.resultSubShapePair()[1]
+      if shape.isNull():
+        shape = sel.resultSubShapePair()[0].shape()
     else:
       needUndo = True
       theModel.begin()