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_gpenciltime.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_gpenciltime.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c index cb7e508e3db..0e66f639ce3 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c @@ -72,7 +72,7 @@ static int remapTime( const int sfra = scene->r.sfra; const int efra = scene->r.efra; const bool invgpl = mmd->flag & GP_TIME_INVERT_LAYER; - const bool invpass = mmd->flag & GP_TIME_INVERT_PASS; + const bool invpass = mmd->flag & GP_TIME_INVERT_LAYERPASS; /* omit if filter by layer */ if (mmd->layername[0] != '\0') { @@ -88,14 +88,14 @@ static int remapTime( } } /* verify pass */ - if (mmd->pass_index > 0) { + if (mmd->layer_pass > 0) { if (invpass == false) { - if (gpl->pass_index != mmd->pass_index) { + if (gpl->pass_index != mmd->layer_pass) { return cfra; } } else { - if (gpl->pass_index == mmd->pass_index) { + if (gpl->pass_index == mmd->layer_pass) { return cfra; } } |