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:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-12 20:34:49 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-12 23:48:10 +0300
commitcd49c7b5eae0d9cc6942294a1d6002f578c8feb9 (patch)
treeac709bddb93cc81d8c28f3940c34717479c67fd2 /source/blender/blenkernel/BKE_gpencil.h
parent01636ed159c7dede57236f7a801d3cfcae0b9750 (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.h5
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);