diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-03-04 23:30:17 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-03-04 23:32:37 +0300 |
commit | 6a662ffda8360f06888452cf43c44b5507f09164 (patch) | |
tree | 756d7de94b720bb08dda1292982a6fa080e311d2 /release/scripts/startup/bl_app_templates_system/2D_Animation | |
parent | 1668f883fbe555bebf992bc77fd1c78203b23b14 (diff) |
GPencil: Implement Autokey button for Draw/Edit and Sculpt mode
Now, if the Autokey is not enabled, a new frame is not created and it is used the last active one. If no active frame, a message is displayed and the operation is canceled.
This is a common request for 2D artists.
Also, grease pencil was not working as Blender does in other areas.
Reviewed By: pepeland
Differential Revision: https://developer.blender.org/D10557
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 | 1 |
1 files changed, 1 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 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 |