Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement filter "F6: On plane side"
[modules/shaper.git]
/
src
/
PythonAPI
/
model
/
tests
/
tests.py
diff --git
a/src/PythonAPI/model/tests/tests.py
b/src/PythonAPI/model/tests/tests.py
index 17fd989ebadacdabb46b7053108995b156afd9fc..167f5c2bfb0522ee51289605f17c6587f833f9d0 100644
(file)
--- a/
src/PythonAPI/model/tests/tests.py
+++ b/
src/PythonAPI/model/tests/tests.py
@@
-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()