From 6818b65185a377f1d8431d8a5a48a1d44b1caf04 Mon Sep 17 00:00:00 2001 From: jmelf Date: Sat, 4 May 2024 16:39:52 -0600 Subject: [PATCH] fix: Use cache instead of globar var to make shot builder more scriptable --- scripts-blender/addons/blender_kitsu/shot_builder/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts-blender/addons/blender_kitsu/shot_builder/ops.py b/scripts-blender/addons/blender_kitsu/shot_builder/ops.py index 584f44da..cc669961 100644 --- a/scripts-blender/addons/blender_kitsu/shot_builder/ops.py +++ b/scripts-blender/addons/blender_kitsu/shot_builder/ops.py @@ -233,7 +233,7 @@ class KITSU_OT_build_new_shot(bpy.types.Operator): def execute(self, context: bpy.types.Context): # Get Properties - global active_project + active_project = cache.project_active_get() seq = cache.sequence_active_get() shot = cache.shot_active_get() task_type = cache.task_type_active_get() -- 2.30.2