Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3304d6
)
def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
author
eap
<eap@opencascade.com>
Wed, 6 Mar 2013 16:03:18 +0000
(16:03 +0000)
committer
eap
<eap@opencascade.com>
Wed, 6 Mar 2013 16:03:18 +0000
(16:03 +0000)
study = smeshpyD.GetCurrentStudy()
+ if not study: return None
scomp = study.FindComponent(smeshpyD.ComponentDataType())
src/SMESH_SWIG/smesh_algorithm.py
patch
|
blob
|
history
diff --git
a/src/SMESH_SWIG/smesh_algorithm.py
b/src/SMESH_SWIG/smesh_algorithm.py
index 9b3acf00d61b45b9a20cbdbdef80aceb522d8927..e71c3c631a5132b9d363ff6e0a45865ff56b87ee 100644
(file)
--- a/
src/SMESH_SWIG/smesh_algorithm.py
+++ b/
src/SMESH_SWIG/smesh_algorithm.py
@@
-71,6
+71,7
@@
class Mesh_Algorithm:
# @return SMESH.SMESH_Hypothesis
def FindHypothesis (self, hypname, args, CompareMethod, smeshpyD):
study = smeshpyD.GetCurrentStudy()
+ if not study: return None
#to do: find component by smeshpyD object, not by its data type
scomp = study.FindComponent(smeshpyD.ComponentDataType())
if scomp is not None: