mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
Fix regression in RemoveHypothesis() method (hypothesis is not removed if mesh does not have underlying shape) caused by previous integrations
This commit is contained in:
parent
f9731f2518
commit
08b70d2054
@ -1368,7 +1368,7 @@ class Mesh:
|
|||||||
# @return True of False
|
# @return True of False
|
||||||
# @ingroup l2_hypotheses
|
# @ingroup l2_hypotheses
|
||||||
def IsUsedHypothesis(self, hyp, geom):
|
def IsUsedHypothesis(self, hyp, geom):
|
||||||
if not hyp or not geom:
|
if not hyp: # or not geom
|
||||||
return False
|
return False
|
||||||
if isinstance( hyp, Mesh_Algorithm ):
|
if isinstance( hyp, Mesh_Algorithm ):
|
||||||
hyp = hyp.GetAlgorithm()
|
hyp = hyp.GetAlgorithm()
|
||||||
|
Loading…
Reference in New Issue
Block a user