diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-12-13 19:09:22 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-12-13 19:09:22 +0300 |
commit | 459af75d1ed586f08cd43e2aec7a3b270e809132 (patch) | |
tree | c7dbbe0be774f5a6fc2fb89630b2a00dd2adf0e5 /source/blender/makesdna/DNA_gpencil_modifier_defaults.h | |
parent | 49802af7cd920d83f2c1805f4047d91842c76311 (diff) |
GPencil: New Shrinkwrap modifier
his new modifier is equals to the existing mesh modifier but adapted to grease pencil.
The underlying functions used to calculate the shrink are the same used in meshes.
{F11794101}
Reviewed By: pepeland, HooglyBoogly
Differential Revision: https://developer.blender.org/D13192
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_defaults.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_defaults.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h index 1ad884bee8f..e0947085694 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h @@ -353,5 +353,26 @@ .mat_nr = -1, \ } +#define _DNA_DEFAULT_ShrinkwrapGpencilModifierData \ + { \ + .target = NULL, \ + .aux_target = NULL, \ + .keep_dist = 0.05f, \ + .shrink_type = MOD_SHRINKWRAP_NEAREST_SURFACE, \ + .shrink_opts = MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR, \ + .shrink_mode = 0, \ + .proj_limit = 0.0f, \ + .proj_axis = 0, \ + .subsurf_levels = 0, \ + .material = NULL, \ + .layername = "", \ + .vgname = "", \ + .pass_index = 0, \ + .flag = 0, \ + .layer_pass = 0, \ + .smooth_factor = 0.05f, \ + .smooth_step = 1, \ + } + /* clang-format off */ |