work
save startup blend for animation tab & whatnot
This commit is contained in:
@@ -50,7 +50,7 @@ class task_object:
|
||||
self,
|
||||
command="",
|
||||
arguments=(),
|
||||
wait=0,
|
||||
wait: float = 0,
|
||||
only_last=False,
|
||||
fake_context=False,
|
||||
fake_context_area="VIEW_3D",
|
||||
@@ -65,7 +65,7 @@ class task_object:
|
||||
|
||||
def add_task(
|
||||
task: Tuple,
|
||||
wait=0,
|
||||
wait: float = 0,
|
||||
only_last=False,
|
||||
fake_context=False,
|
||||
fake_context_area="VIEW_3D",
|
||||
@@ -122,8 +122,8 @@ def queue_worker():
|
||||
task.wait -= time_step
|
||||
back_to_queue.append(task)
|
||||
else:
|
||||
bk_logger.debug(
|
||||
"task queue task:" + str(task.command) + str(task.arguments)
|
||||
bk_logger.log(
|
||||
5, "task queue task: %s %s", task.command, task.arguments[10:]
|
||||
)
|
||||
try:
|
||||
if task.fake_context:
|
||||
@@ -137,12 +137,11 @@ def queue_worker():
|
||||
task.command(*task.arguments)
|
||||
else:
|
||||
task.command(*task.arguments)
|
||||
except Exception as e:
|
||||
bk_logger.error(
|
||||
"task queue failed task:"
|
||||
+ str(task.command)
|
||||
+ str(task.arguments)
|
||||
+ str(e)
|
||||
except Exception:
|
||||
bk_logger.exception(
|
||||
"task queue failed task: %s %s %s",
|
||||
task.command,
|
||||
task.arguments[10:],
|
||||
)
|
||||
# bk_logger.exception('Got exception on main handler')
|
||||
# raise
|
||||
|
||||
Reference in New Issue
Block a user