Blender Kitsu: Refactor Shot Builder #183

Merged
Nick Alberelli merged 55 commits from TinyNick/blender-studio-pipeline:feature/shot-builder-2 into main 2023-12-21 23:58:21 +01:00
Showing only changes of commit edbfc84b2c - Show all commits

View File

@ -355,6 +355,20 @@ def get_shot_task_types_enum(
return _task_types_shots_enum_list
def get_shot_task_types_enum_for_shot( # TODO Rename
self: bpy.types.Operator, context: bpy.types.Context, shot: Shot
) -> List[Tuple[str, str, str]]:
# TODO why do we have global variables here can't I just return the items directly? We clear the list every time how is this a cahe?
global _task_types_shots_enum_list
items = [(t.id, t.name, "") for t in shot.get_all_task_types()]
_task_types_shots_enum_list.clear()
_task_types_shots_enum_list.extend(items)
return _task_types_shots_enum_list
def get_all_task_statuses_enum(
self: bpy.types.Operator, context: bpy.types.Context
) -> List[Tuple[str, str, str]]: