mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
timer service wont try to launch timers on project tasks
This commit is contained in:
parent
6f5a80bf1b
commit
cef42b84b7
1 changed files with 8 additions and 0 deletions
|
|
@ -79,6 +79,14 @@ class TimersManager(metaclass=Singleton):
|
|||
}
|
||||
'''
|
||||
self.last_task = data
|
||||
|
||||
if len(input_data['hierarchy']) < 1:
|
||||
self.log.error((
|
||||
'Timer has been launched on task which is child of Project.'
|
||||
' That is not allowed in Pype!'
|
||||
))
|
||||
return
|
||||
|
||||
for module in self.modules:
|
||||
module.start_timer_manager(data)
|
||||
self.is_running = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue