From: gdd Date: Mon, 6 Aug 2012 08:57:15 +0000 (+0000) Subject: Another fix X-Git-Tag: V6_6_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aaafb1e7edb27b0699037b8086d5bfb1d0505d18;p=plugins%2Fghs3dplugin.git Another fix --- diff --git a/src/GHS3DPlugin/GHS3DPluginDC.py b/src/GHS3DPlugin/GHS3DPluginDC.py index 74d5c2c..adc2dd9 100644 --- a/src/GHS3DPlugin/GHS3DPluginDC.py +++ b/src/GHS3DPlugin/GHS3DPluginDC.py @@ -170,12 +170,12 @@ class GHS3D_Algorithm(Mesh_Algorithm): # @param groupName : group in which enforced elements will be added. Unused if "". def SetEnforcedMesh(self, theSource, elementType, size = -1, groupName = ""): if size < 0: - if groupName != "": + if groupName == "": return self.Parameters().SetEnforcedMesh(theSource, elementType) else: return self.Parameters().SetEnforcedMeshWithGroup(theSource, elementType, groupName) else: - if groupName != "": + if groupName == "": return self.Parameters().SetEnforcedMeshSize(theSource, elementType, size) else: return self.Parameters().SetEnforcedMeshSizeWithGroup(theSource, elementType, size, groupName)