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>2018-10-24 17:46:14 +0300
committerAntonioya <blendergit@gmail.com>2018-10-24 17:46:35 +0300
commit735d6cb8d87cc3bb8ba9a727b95480502dd0f2b1 (patch)
tree63efa0eb20b22a666d716c0129da91def278c0e3 /source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
parenta211937892f55ac9510e0f9b625c1bd24cc12550 (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_gpencilbuild.c')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
index 0b02443f7eb..a98078a6490 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
@@ -435,6 +435,19 @@ static void generateStrokes(
}
}
}
+ /* verify layer pass */
+ if (mmd->layer_pass > 0) {
+ if ((mmd->flag & GP_BUILD_INVERT_LAYERPASS) == 0) {
+ if (gpl->pass_index != mmd->layer_pass) {
+ return false;
+ }
+ }
+ else {
+ if (gpl->pass_index == mmd->layer_pass) {
+ return false;
+ }
+ }
+ }
/* Early exit if outside of the frame range for this modifier
* (e.g. to have one forward, and one backwards modifier)