From: eap Date: Thu, 26 Jul 2018 12:23:53 +0000 (+0300) Subject: Fix up PressureValve test X-Git-Tag: SHAPER_V9_1_0RC1~12^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=088e26c7813158dc2c8c66d9f485356008df1dae;p=modules%2Fsmesh.git Fix up PressureValve test --- diff --git a/src/Tools/MacMesh/MacMesh/MacObject.py b/src/Tools/MacMesh/MacMesh/MacObject.py index becca33dc..e3a9c03fe 100644 --- a/src/Tools/MacMesh/MacMesh/MacObject.py +++ b/src/Tools/MacMesh/MacMesh/MacObject.py @@ -69,7 +69,7 @@ class MacObject: self.MeshGroups = [] self.CheckInterfaces() if 'auto' in MeshParameters : self.AutoParam() - if not(self.MeshPar[0]<0): self.Generate() + if isinstance(self.MeshPar[0], list) or not(self.MeshPar[0]<0): self.Generate() else : Config.ListObj.append(self) print("Aborting object creation\n ") @@ -186,7 +186,7 @@ class MacObject: self.MeshPar[0] = GenFunctions.CompatibilityTest(self) if isinstance( self.MeshPar[0], list ): - return # workaround, as CompatibilityTest() can return a list + return # OK if self.MeshPar[0] < 0 : Alarms.Message(4) if self.MeshPar[0] == -1 : print(("Problem encountered with object(s) no. "+str(ObjectsInvolved)))