From 368b56c9a132f7a37c638d16fc4c263d211bc4ed Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Wed, 22 Sep 2021 15:50:38 +0200 Subject: GPencil: Split Weight modifier in two to make more consistent The old modifier had two modes, but it is better to keep separated as meshes. The UI has changed to be more consistent, including a new column type of modifiers. Note: The logic has not changed with the previous version of the modifier, just is a split on two modifiers.. Reviewed By: mendio, pablovazquez Differential Revision: https://developer.blender.org/D12586 --- source/blender/makesdna/DNA_gpencil_modifier_defaults.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna/DNA_gpencil_modifier_defaults.h') diff --git a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h index 3a100c00999..2a3c6f4e3db 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h @@ -283,7 +283,7 @@ .colorband = NULL, \ } -#define _DNA_DEFAULT_WeightGpencilModifierData \ +#define _DNA_DEFAULT_WeightProxGpencilModifierData \ { \ .target_vgname = "", \ .material = NULL, \ @@ -291,12 +291,23 @@ .vgname = "", \ .pass_index = 0, \ .flag = 0, \ - .axis = 1, \ .layer_pass = 0, \ .dist_start = 0.0f, \ .dist_end = 20.0f, \ } +#define _DNA_DEFAULT_WeightAngleGpencilModifierData \ + { \ + .target_vgname = "", \ + .material = NULL, \ + .layername = "", \ + .vgname = "", \ + .pass_index = 0, \ + .flag = 0, \ + .axis = 1, \ + .layer_pass = 0, \ + } + #define _DNA_DEFAULT_LineartGpencilModifierData \ { \ .edge_types = LRT_EDGE_FLAG_ALL_TYPE, \ -- cgit v1.2.3