Blender Kitsu: Refactor Shot Builder #183
@ -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]]:
|
||||
|
Loading…
Reference in New Issue
Block a user