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:
vsr 2013-01-15 12:26:34 +00:00
parent f9731f2518
commit 08b70d2054

View File

@ -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()