From e7811c61c3565ada368be484f20e7fcac4a9f2cb Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 1 Jun 2018 10:21:02 +0300 Subject: [PATCH] Fix regression caused by commit 67312ab9 --- src/SMESH_SWIG/smeshBuilder.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 9e92ae4a5..05710d64c 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -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"): -- 2.39.2