mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Don't error if "show" is clicked but comp is closed already
This commit is contained in:
parent
15c3b06828
commit
fb940c5da0
1 changed files with 6 additions and 1 deletions
|
|
@ -156,7 +156,12 @@ def on_after_open(_event):
|
|||
comp = get_current_comp()
|
||||
|
||||
def _on_show_scene_inventory():
|
||||
comp.CurrentFrame.ActivateFrame() # ensure that comp is active
|
||||
# ensure that comp is active
|
||||
frame = comp.CurrentFrame
|
||||
if not frame:
|
||||
print("Comp is closed, skipping show scene inventory")
|
||||
return
|
||||
frame.ActivateFrame() # raise comp window
|
||||
host_tools.show_scene_inventory()
|
||||
|
||||
from openpype.widgets import popup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue