mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
allows users to enable custom attributes for abc depending on their preferences and supsended refresh for abc & obj extractor for optimization
This commit is contained in:
parent
11d2f27526
commit
038cdfa80e
11 changed files with 134 additions and 85 deletions
|
|
@ -497,3 +497,16 @@ def get_plugins() -> list:
|
|||
plugin_info_list.append(plugin_info)
|
||||
|
||||
return plugin_info_list
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def suspended_refresh():
|
||||
rt.disableSceneRedraw()
|
||||
rt.suspendEditing()
|
||||
|
||||
try:
|
||||
yield
|
||||
|
||||
finally:
|
||||
rt.enableSceneRedraw()
|
||||
rt.resumeEditing()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue