From: vsr Date: Tue, 15 Jan 2013 12:26:34 +0000 (+0000) Subject: Fix regression in RemoveHypothesis() method (hypothesis is not removed if mesh does... X-Git-Tag: pluginMGCleaner~178 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08b70d2054f16a2600295bab2aa837cbbf270032;p=modules%2Fsmesh.git Fix regression in RemoveHypothesis() method (hypothesis is not removed if mesh does not have underlying shape) caused by previous integrations --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 3db5c77d8..85df31cf3 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1368,7 +1368,7 @@ class Mesh: # @return True of False # @ingroup l2_hypotheses def IsUsedHypothesis(self, hyp, geom): - if not hyp or not geom: + if not hyp: # or not geom return False if isinstance( hyp, Mesh_Algorithm ): hyp = hyp.GetAlgorithm()