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-08-08 14:37:56 +0300
committerAntonioya <blendergit@gmail.com>2018-08-08 14:37:56 +0300
commit78a6fa1a7294d73a4f35b08d569d03f1afdd71ac (patch)
treeb267e9c13697524c2f3deb12691991a9a0648654 /source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
parent08e49c034b318fa430f2b783b3a3fac089da5f9b (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.h7
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__ */