Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <antoniov>2019-10-10 09:11:47 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-10-10 09:13:32 +0300
commitea1174bde9edff7639b1b3de4989084987a29f1e (patch)
treea10a6fd93460bc278f071db5000a3b920fe60518 /source/blender/makesdna/DNA_gpencil_types.h
parent7e020e70d9ce5e970ff12313f5565e13545058bb (diff)
Annotations: Use flag to determine if the layer is a Ruler
Proposed fix for T70141. Before, the ruler was using the name of the layer as key, but this is very weak because if the layer name changes, the layer gets an annotation layer. Now, the layer is marked using a flag and now it's possible to rename it. Reviewed By: dfelinto Differential Revision: https://developer.blender.org/D6028
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 2dffdf82688..1435d0a64b4 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -401,6 +401,8 @@ typedef enum eGPDlayer_Flag {
GP_LAYER_USE_MASK = (1 << 13),
/* Flag used to display in Paint mode only layers with keyframe */
GP_LAYER_SOLO_MODE = (1 << 4),
+ /* Ruler Layer */
+ GP_LAYER_IS_RULER = (1 << 14),
} eGPDlayer_Flag;
/* bGPDlayer->onion_flag */