save startup blend for animation tab & whatnot
This commit is contained in:
2026-04-08 12:10:18 -06:00
parent 57a652524a
commit 692e200ffe
180 changed files with 12336 additions and 3431 deletions
@@ -58,8 +58,8 @@ class BlenderKitDisclaimerOperator(BL_UI_OT_draw_operator):
)
fadeout_time: IntProperty( # type: ignore[valid-type]
name="Fadout time",
description="after how many seconds do fadout",
name="Fadeout time",
description="after how many seconds do fadeout",
default=5,
min=1,
max=50,
@@ -224,18 +224,21 @@ class BlenderKitDisclaimerOperator(BL_UI_OT_draw_operator):
@classmethod
def unregister(cls):
bk_logger.debug(f"unregistering class {cls}")
bk_logger.debug("unregistering class %s", cls)
instances_copy = cls.instances.copy()
for instance in instances_copy:
bk_logger.debug(f"- class instance {instance}")
try:
bk_logger.debug("- class instance %s", instance)
except ReferenceError:
bk_logger.debug("- class instance <deleted>")
try:
instance.unregister_handlers(instance.context)
except Exception as e:
bk_logger.debug(f"-- error unregister_handlers(): {e}")
bk_logger.debug("-- error unregister_handlers(): %s", e)
try:
instance.on_finish(instance.context)
except Exception as e:
bk_logger.debug(f"-- error calling on_finish() {e}")
bk_logger.debug("-- error calling on_finish() %s", e)
if bpy.context.region is not None:
bpy.context.region.tag_redraw()
@@ -290,7 +293,7 @@ def handle_disclaimer_task(task: client_tasks.Task):
return
if task.status == "error":
bk_logger.warning(f"Could not load disclaimer: {task.message}")
bk_logger.warning("Could not load disclaimer: %s", task.message)
return show_random_tip()