[Bf-blender-cvs] [d8347833871] greasepencil-refactor: GPencil: Enable Annotations by default in 2D template

Antonio Vazquez noreply at git.blender.org
Tue Jan 7 17:00:47 CET 2020


Commit: d834783387128d37ef82c89bdd3201681f0ea5f6
Author: Antonio Vazquez
Date:   Tue Jan 7 17:00:02 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBd834783387128d37ef82c89bdd3201681f0ea5f6

GPencil: Enable Annotations by default in 2D template

===================================================================

M	source/blender/blenloader/intern/versioning_defaults.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 3dcd1b57e7d..effc4c6fa30 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -234,6 +234,8 @@ static void blo_update_defaults_screen(bScreen *screen,
           View3D *v3d = sa->spacedata.first;
           /* Set Vertex Color by default. */
           v3d->shading.color_type = V3D_SHADING_VERTEX_COLOR;
+          /* Enable Annotations. */
+          v3d->flag2 |= V3D_SHOW_ANNOTATION;
         }
       }
     }



More information about the Bf-blender-cvs mailing list