From 79744ef360379f55d11532f32a65dfebde053ca2 Mon Sep 17 00:00:00 2001 From: Falk David Date: Fri, 19 Jul 2024 17:30:58 +0200 Subject: [PATCH] Fix: 2D Animation Template: Update Factory Startup The function was iterating over the legacy ID type. Use `bpy.data.grease_pencils_v3` instead. --- .../startup/bl_app_templates_system/2D_Animation/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py b/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py index 14e576626ad..a4393f87205 100644 --- a/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py +++ b/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py @@ -37,8 +37,8 @@ def update_factory_startup_scenes(): def update_factory_startup_grease_pencils(): - for gpd in bpy.data.grease_pencils: - gpd.onion_keyframe_type = 'ALL' + for grease_pencil in bpy.data.grease_pencils_v3: + grease_pencil.onion_keyframe_type = 'ALL' @persistent