diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-24 17:46:14 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-24 17:46:35 +0300 |
commit | 735d6cb8d87cc3bb8ba9a727b95480502dd0f2b1 (patch) | |
tree | 63efa0eb20b22a666d716c0129da91def278c0e3 /source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c | |
parent | a211937892f55ac9510e0f9b625c1bd24cc12550 (diff) |
GP: Add new Layer Pass Index filter to modifiers
Now the modifier can be filtered using the new layer index.
Also changed panels to put layers and passes filter always at the end of the panel.
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c index aec9715a995..19e6e6905b9 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c @@ -124,8 +124,11 @@ static void generateStrokes( for (i = 0, gps = gpf->strokes.first; i < tot_strokes; i++, gps = gps->next) { if (is_stroke_affected_by_modifier( - ob, mmd->layername, mmd->pass_index, 1, gpl, gps, - mmd->flag & GP_MIRROR_INVERT_LAYER, mmd->flag & GP_MIRROR_INVERT_PASS)) + ob, mmd->layername, mmd->pass_index, mmd->layer_pass, + 1, gpl, gps, + mmd->flag & GP_MIRROR_INVERT_LAYER, + mmd->flag & GP_MIRROR_INVERT_PASS, + mmd->flag & GP_MIRROR_INVERT_LAYERPASS)) { gps_new = BKE_gpencil_stroke_duplicate(gps); update_position(ob, mmd, gps_new, xi); |