use new event system in openpype

This commit is contained in:
Jakub Trllo 2022-03-04 19:01:31 +01:00
parent e629e40b4f
commit 9c111fa9d4
15 changed files with 97 additions and 76 deletions

View file

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