mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
clean up the codes
This commit is contained in:
parent
92bab3491a
commit
a22d1baa15
2 changed files with 3 additions and 10 deletions
|
|
@ -515,11 +515,11 @@ def get_plugins() -> list:
|
|||
def suspended_refresh():
|
||||
"""Suspended refresh for scene and modify panel redraw.
|
||||
"""
|
||||
rt.disableSceneRedraw()
|
||||
rt.suspendEditing()
|
||||
if is_headless():
|
||||
yield
|
||||
return
|
||||
rt.disableSceneRedraw()
|
||||
rt.suspendEditing()
|
||||
try:
|
||||
yield
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue