mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use new event system in openpype
This commit is contained in:
parent
e629e40b4f
commit
9c111fa9d4
15 changed files with 97 additions and 76 deletions
|
|
@ -10,8 +10,9 @@ from .lib import (
|
|||
Anatomy,
|
||||
filter_pyblish_plugins,
|
||||
set_plugin_attributes_from_settings,
|
||||
change_timer_to_current_context
|
||||
change_timer_to_current_context,
|
||||
)
|
||||
from .pipeline import register_event_callback
|
||||
|
||||
pyblish = avalon = _original_discover = None
|
||||
|
||||
|
|
@ -122,10 +123,10 @@ def install():
|
|||
avalon.discover = patched_discover
|
||||
pipeline.discover = patched_discover
|
||||
|
||||
avalon.on("taskChanged", _on_task_change)
|
||||
register_event_callback("taskChanged", _on_task_change)
|
||||
|
||||
|
||||
def _on_task_change(*args):
|
||||
def _on_task_change():
|
||||
change_timer_to_current_context()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue