diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-08-19 16:30:38 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-08-19 16:30:38 +0300 |
commit | 3e56dd8fd9210735c654661c8ada5a5f92623826 (patch) | |
tree | a5ba888a10d77b7ac0e589615501709ba395c2d9 /release/scripts/startup/bl_app_templates_system/2D_Animation | |
parent | 5cc08510e0a636ea99eb753cb0ff65861d5e4813 (diff) |
GPencil: Change default Onion Keyframe mode to ALL
Now by default the selection mode is All keyframes types.
Also removed the icon for All option and renamed from `All Types`to `All`.
UI review by @pablovazquez
Diffstat (limited to 'release/scripts/startup/bl_app_templates_system/2D_Animation')
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py b/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py index 009cb65d150..1892bea41f7 100644 --- a/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py +++ b/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py @@ -55,6 +55,13 @@ def load_handler(dummy): space.shading.type = 'MATERIAL' space.shading.use_scene_world = True + # Grease pencil object + scene = bpy.data.scenes[0] + if scene: + for ob in scene.objects: + if ob.type == 'GPENCIL': + gpd = ob.data + gpd.onion_keyframe_type = 'ALL' def register(): bpy.app.handlers.load_factory_startup_post.append(load_handler) |