diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-08 14:37:56 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-08 14:37:56 +0300 |
commit | 78a6fa1a7294d73a4f35b08d569d03f1afdd71ac (patch) | |
tree | b267e9c13697524c2f3deb12691991a9a0648654 /source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h | |
parent | 08e49c034b318fa430f2b783b3a3fac089da5f9b (diff) |
Cleanup: Move some duplicate code to new function
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h index 39a4947573e..1ca9febbdca 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h @@ -33,10 +33,13 @@ #ifndef __MOD_GPENCIL_UTIL_H__ #define __MOD_GPENCIL_UTIL_H__ +struct Main; struct Object; struct bGPDlayer; struct bGPDstroke; struct MDeformVert; +struct Material; +struct GHash; bool is_stroke_affected_by_modifier( struct Object *ob, char *mlayername, int mpassindex, int minpoints, @@ -44,4 +47,8 @@ bool is_stroke_affected_by_modifier( float get_modifier_point_weight(struct MDeformVert *dvert, int inverse, int vindex); +void gpencil_apply_modifier_material( + struct Main *bmain, struct Object *ob, struct Material *mat, + struct GHash *gh_color, struct bGPDstroke *gps, bool crt_material); + #endif /* __MOD_GPENCIL_UTIL_H__ */ |