Blender Kitsu: fix task type filtering for the active project #216

Merged
Nick Alberelli merged 2 commits from slumber/blender-studio-pipeline:fix-project-task-filtering into main 2024-02-01 14:21:57 +01:00
Showing only changes of commit 0e7d4658d8 - Show all commits

View File

@ -479,7 +479,7 @@ def get_shot_task_types_enum(
# Update Cache project ID
_all_shot_tasks_cache_proj_id = project_active.id
items = [(t.id, t.name, "") for t in TaskType.all_shot_task_types()]
items = [(t.id, t.name, "") for t in TaskType.all_shot_task_types() if t.id in project_active.task_types]
_task_types_shots_enum_list.clear()
_task_types_shots_enum_list.extend(items)