diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-01 10:31:20 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-09-01 10:31:20 +0300 |
commit | ae43b1d51b4a0384c2197a6aca5cd2810c9283ff (patch) | |
tree | 29697b8de5c70403326d9fc32fc3a789e19b28d0 /source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c | |
parent | 883706395ee37188900e3ac2c00070c9a43246d2 (diff) |
Fix T69364: GPencil Array Modifiers causes crash
This bug was introduced when adding the support for default materials.
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c index 5209313f717..b44965707d8 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c @@ -88,7 +88,7 @@ bool is_stroke_affected_by_modifier(Object *ob, bool inv3, bool inv4) { - Material *ma = give_current_material(ob, gps->mat_nr + 1); + Material *ma = BKE_material_gpencil_get(ob, gps->mat_nr + 1); MaterialGPencilStyle *gp_style = ma->gp_style; /* omit if filter by layer */ |