[Bf-blender-cvs] [2fbb179f8bb] temp-gpencil-autokey: GPencil: Enable Autokey in 2D template
Antonio Vazquez
noreply at git.blender.org
Sat Feb 27 16:55:47 CET 2021
Commit: 2fbb179f8bb2bb83a4d50802976417bc4928d1fd
Author: Antonio Vazquez
Date: Sat Feb 27 16:55:42 2021 +0100
Branches: temp-gpencil-autokey
https://developer.blender.org/rB2fbb179f8bb2bb83a4d50802976417bc4928d1fd
GPencil: Enable Autokey in 2D template
===================================================================
M release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py
===================================================================
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 9b0a260dc95..192ba2cf5b5 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
@@ -58,6 +58,7 @@ def load_handler(dummy):
# Grease pencil object
scene = bpy.data.scenes[0]
if scene:
+ scene.tool_settings.use_keyframe_insert_auto = True
for ob in scene.objects:
if ob.type == 'GPENCIL':
gpd = ob.data
More information about the Bf-blender-cvs
mailing list