clean up the codes

This commit is contained in:
Kayla Man 2023-10-25 12:31:54 +08:00
parent 92bab3491a
commit a22d1baa15
2 changed files with 3 additions and 10 deletions

View file

@ -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