]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Another fix
authorgdd <gdd>
Mon, 6 Aug 2012 08:57:15 +0000 (08:57 +0000)
committergdd <gdd>
Mon, 6 Aug 2012 08:57:15 +0000 (08:57 +0000)
src/GHS3DPlugin/GHS3DPluginDC.py

index 74d5c2c1f9ae8955c32789861d890fb6c5431a0f..adc2dd97653d997661cab4bdbb7f64e4a90ab33c 100644 (file)
@@ -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)