diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-08 21:35:08 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-08 21:40:11 +0300 |
commit | 05c0992c9b8fd852855b908fcd6333678360c307 (patch) | |
tree | 6d19cd8f2eb013310b0031d7cb42ee982d06b9b8 /source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c | |
parent | a2726e80d1ddc8f4c92eaeaeaf33d1e59b06392a (diff) |
GP: Fix modifiers Tint, Opacity and Hue and create materials to Opacity
Thanks to Charlie Jolly (mistajolly@gmail.com) for his patch D3586 that added create materials to opacity modifier.
I had to do some more changes to get all running.
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 151218c06e4..3914d960a79 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.c @@ -165,7 +165,7 @@ void gpencil_apply_modifier_material( copy_v4_v4(newmat->gp_style->stroke_rgba, gps->runtime.tmp_stroke_rgba); copy_v4_v4(newmat->gp_style->fill_rgba, gps->runtime.tmp_fill_rgba); - BLI_ghash_insert(gh_color, mat->id.name, newmat); + BLI_ghash_insert(gh_color, newmat->id.name, newmat); DEG_id_tag_update(&newmat->id, DEG_TAG_COPY_ON_WRITE); } /* reasign color index */ |