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>2019-05-14 12:57:32 +0300
committerAntonioya <blendergit@gmail.com>2019-05-14 12:59:19 +0300
commit254b1a4294d06ae44f45a68b6756787392ce1fc1 (patch)
tree8e60a89bc9965867483ba334cc63a7f31061d930 /source/blender/makesdna
parent21bfc469abb88c171bb04379644a8595c31b8e12 (diff)
Fix T64441: GPencil textures weird rotation
New option to disable the follow drawing path. Before it had only a switch property, now there is a list of options. Modes: Path: Follows drawing stroke and rotate with object. Object: Only follows object rotation. None: Don't rotate.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_material_types.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index 02f8245413d..454ded28f8e 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -99,6 +99,9 @@ typedef struct MaterialGPencilStyle {
/** Factor used to mix texture and stroke color. */
float mix_stroke_factor;
+ /** Mode used to follow stroke drawing path by textures */
+ int follow_mode;
+ char _pad[4];
} MaterialGPencilStyle;
/* MaterialGPencilStyle->flag */
@@ -123,8 +126,6 @@ typedef enum eMaterialGPencilStyle_Flag {
GP_STYLE_STROKE_SHOW = (1 << 8),
/* Fill show main switch */
GP_STYLE_FILL_SHOW = (1 << 9),
- /* Don't rotate dots/boxes */
- GP_STYLE_COLOR_LOCK_DOTS = (1 << 10),
/* mix stroke texture */
GP_STYLE_STROKE_TEX_MIX = (1 << 11),
} eMaterialGPencilStyle_Flag;
@@ -347,4 +348,10 @@ enum {
GP_STYLE_GRADIENT_RADIAL,
};
+/* Grease Pencil Follow Drawing Modes */
+enum {
+ GP_STYLE_FOLLOW_PATH = 0,
+ GP_STYLE_FOLLOW_OBJ,
+ GP_STYLE_FOLLOW_NONE,
+};
#endif