mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Fix getPanel command returning None in batch mode
This commit is contained in:
parent
eb82abcc72
commit
49e309875a
1 changed files with 1 additions and 1 deletions
|
|
@ -1030,7 +1030,7 @@ def get_isolate_view_sets():
|
|||
"""
|
||||
|
||||
view_sets = set()
|
||||
for panel in cmds.getPanel(type="modelPanel"):
|
||||
for panel in cmds.getPanel(type="modelPanel") or []:
|
||||
view_set = cmds.modelEditor(panel, query=True, viewObjects=True)
|
||||
if view_set:
|
||||
view_sets.add(view_set)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue