diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-08-12 20:34:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-08-12 23:48:10 +0300 |
commit | cd49c7b5eae0d9cc6942294a1d6002f578c8feb9 (patch) | |
tree | ac709bddb93cc81d8c28f3940c34717479c67fd2 /source/blender/blenkernel/BKE_gpencil.h | |
parent | 01636ed159c7dede57236f7a801d3cfcae0b9750 (diff) |
GPencil: Move merge similar materials code to BKE
This is required in other places and need to be shared.
Diffstat (limited to 'source/blender/blenkernel/BKE_gpencil.h')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index 6defc2ffd68..88eef40ebd2 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -131,6 +131,11 @@ bool BKE_gpencil_merge_materials_table_get(struct Object *ob, const float sat_threshold, const float val_threshold, struct GHash *r_mat_table); +bool BKE_gpencil_merge_materials(struct Object *ob, + const float hue_threshold, + const float sat_threshold, + const float val_threshold, + int *r_removed); /* statistics functions */ void BKE_gpencil_stats_update(struct bGPdata *gpd); |