]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix regression caused by commit 67312ab9
authorvsr <vsr@opencascade.com>
Fri, 1 Jun 2018 07:21:02 +0000 (10:21 +0300)
committervsr <vsr@opencascade.com>
Fri, 1 Jun 2018 07:21:02 +0000 (10:21 +0300)
src/SMESH_SWIG/smeshBuilder.py

index 9e92ae4a5edf36bbb79cfe054e6914ea9cbdb4f8..05710d64c2853f408ab41c40654f6194f17a92d2 100644 (file)
@@ -3640,17 +3640,17 @@ class Mesh:
             :meth:`BoundingBox()`
         """
 
-        if IDs is None:
-            IDs = [self.mesh]
-        elif isinstance(IDs, tuple):
-            IDs = list(IDs)
-        if not isinstance(IDs, list):
-            IDs = [IDs]
-        if len(IDs) > 0 and isinstance(IDs[0], int):
-            IDs = [IDs]
+        if objects is None:
+            objects = [self.mesh]
+        elif isinstance(objects, tuple):
+            objects = list(objects)
+        if not isinstance(objects, list):
+            objects = [objects]
+        if len(objects) > 0 and isinstance(objects[0], int):
+            objects = [objects]
         srclist = []
         unRegister = genObjUnRegister()
-        for o in IDs:
+        for o in objects:
             if isinstance(o, Mesh):
                 srclist.append(o.mesh)
             elif hasattr(o, "_narrow"):