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:
authorAntonioya <blendergit@gmail.com>2018-10-24 12:02:52 +0300
committerAntonioya <blendergit@gmail.com>2018-10-24 12:03:09 +0300
commite1a66201da2595b8d5afd7072a1f3730ca34d04a (patch)
tree10f4a1731e1ec56d0f0be778457c9cda6c738a5f /source/blender/makesdna
parent341306995be6839fe091d23b511d89ad8deb616a (diff)
GP: Add layer pass index to time modifier
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h3
-rw-r--r--source/blender/makesdna/DNA_gpencil_types.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h
index 9d543ddbc78..17ec1073c1d 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_types.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h
@@ -143,15 +143,18 @@ typedef enum eThickGpencil_Flag {
typedef struct TimeGpencilModifierData {
GpencilModifierData modifier;
char layername[64]; /* layer name */
+ int pass_index; /* custom index for passes */
int flag; /* flags */
int offset;
float frame_scale; /* animation scale */
int mode;
+ char pad_[4];
} TimeGpencilModifierData;
typedef enum eTimeGpencil_Flag {
GP_TIME_INVERT_LAYER = (1 << 0),
GP_TIME_KEEP_LOOP = (1 << 1),
+ GP_TIME_INVERT_PASS = (1 << 2),
} eTimeGpencil_Flag;
typedef enum eTimeGpencil_Mode {
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 858008afd91..54559ce89f7 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -260,7 +260,7 @@ typedef struct bGPDlayer {
* needs to be kept unique, as it's used as the layer identifier */
short thickness; /* thickness to apply to strokes (Annotations) */
- char pad_1[2];
+ short pass_index; /* used to filter groups of layers in modifiers */
struct Object *parent; /* parent object */
float inverse[4][4]; /* inverse matrix (only used if parented) */