mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 22:10:33 +05:00
Fix regression caused by commit 67312ab9
This commit is contained in:
parent
f513b3c72c
commit
e7811c61c3
@ -3640,17 +3640,17 @@ class Mesh:
|
|||||||
:meth:`BoundingBox()`
|
:meth:`BoundingBox()`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if IDs is None:
|
if objects is None:
|
||||||
IDs = [self.mesh]
|
objects = [self.mesh]
|
||||||
elif isinstance(IDs, tuple):
|
elif isinstance(objects, tuple):
|
||||||
IDs = list(IDs)
|
objects = list(objects)
|
||||||
if not isinstance(IDs, list):
|
if not isinstance(objects, list):
|
||||||
IDs = [IDs]
|
objects = [objects]
|
||||||
if len(IDs) > 0 and isinstance(IDs[0], int):
|
if len(objects) > 0 and isinstance(objects[0], int):
|
||||||
IDs = [IDs]
|
objects = [objects]
|
||||||
srclist = []
|
srclist = []
|
||||||
unRegister = genObjUnRegister()
|
unRegister = genObjUnRegister()
|
||||||
for o in IDs:
|
for o in objects:
|
||||||
if isinstance(o, Mesh):
|
if isinstance(o, Mesh):
|
||||||
srclist.append(o.mesh)
|
srclist.append(o.mesh)
|
||||||
elif hasattr(o, "_narrow"):
|
elif hasattr(o, "_narrow"):
|
||||||
|
Loading…
Reference in New Issue
Block a user