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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-06 04:50:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-06 04:56:44 +0300
commitbba4a09b2f0b73f0a38e1eccc403a4cef536f703 (patch)
tree4fcd36e2643a2e4d476d3bcf00c346e7ac81c642 /source/blender/blenkernel/BKE_deform.h
parent1af83aa2dd895ca0e6e7a31d64c19ef4d3241298 (diff)
Cleanup: use 'BKE_' prefix for BKE_deform API calls
- Use 'BKE_object_defgroup' prefix for object functions. - Rename 'defvert_verify_index' to 'defvert_ensure_index' since this adds the group if it isn't found.
Diffstat (limited to 'source/blender/blenkernel/BKE_deform.h')
-rw-r--r--source/blender/blenkernel/BKE_deform.h126
1 files changed, 64 insertions, 62 deletions
diff --git a/source/blender/blenkernel/BKE_deform.h b/source/blender/blenkernel/BKE_deform.h
index 2911002b9e9..222678407d1 100644
--- a/source/blender/blenkernel/BKE_deform.h
+++ b/source/blender/blenkernel/BKE_deform.h
@@ -37,35 +37,35 @@ struct MPoly;
struct Object;
struct bDeformGroup;
-struct bDeformGroup *BKE_defgroup_new(struct Object *ob, const char *name);
-void defgroup_copy_list(struct ListBase *lb1, const struct ListBase *lb2);
-struct bDeformGroup *defgroup_duplicate(const struct bDeformGroup *ingroup);
-struct bDeformGroup *defgroup_find_name(struct Object *ob, const char *name);
-int *defgroup_flip_map(struct Object *ob, int *flip_map_len, const bool use_default);
-int *defgroup_flip_map_single(struct Object *ob,
- int *flip_map_len,
- const bool use_default,
- int defgroup);
-int defgroup_flip_index(struct Object *ob, int index, const bool use_default);
-int defgroup_name_index(struct Object *ob, const char *name);
-void defgroup_unique_name(struct bDeformGroup *dg, struct Object *ob);
+struct bDeformGroup *BKE_object_defgroup_new(struct Object *ob, const char *name);
+void BKE_defgroup_copy_list(struct ListBase *lb1, const struct ListBase *lb2);
+struct bDeformGroup *BKE_defgroup_duplicate(const struct bDeformGroup *ingroup);
+struct bDeformGroup *BKE_object_defgroup_find_name(struct Object *ob, const char *name);
+int *BKE_object_defgroup_flip_map(struct Object *ob, int *flip_map_len, const bool use_default);
+int *BKE_object_defgroup_flip_map_single(struct Object *ob,
+ int *flip_map_len,
+ const bool use_default,
+ int defgroup);
+int BKE_object_defgroup_flip_index(struct Object *ob, int index, const bool use_default);
+int BKE_object_defgroup_name_index(struct Object *ob, const char *name);
+void BKE_object_defgroup_unique_name(struct bDeformGroup *dg, struct Object *ob);
-struct MDeformWeight *defvert_find_index(const struct MDeformVert *dv, const int defgroup);
-struct MDeformWeight *defvert_verify_index(struct MDeformVert *dv, const int defgroup);
-void defvert_add_index_notest(struct MDeformVert *dv, int defgroup, const float weight);
-void defvert_remove_group(struct MDeformVert *dvert, struct MDeformWeight *dw);
-void defvert_clear(struct MDeformVert *dvert);
-int defvert_find_shared(const struct MDeformVert *dvert_a, const struct MDeformVert *dvert_b);
-bool defvert_is_weight_zero(const struct MDeformVert *dvert, const int defgroup_tot);
+struct MDeformWeight *BKE_defvert_find_index(const struct MDeformVert *dv, const int defgroup);
+struct MDeformWeight *BKE_defvert_ensure_index(struct MDeformVert *dv, const int defgroup);
+void BKE_defvert_add_index_notest(struct MDeformVert *dv, int defgroup, const float weight);
+void BKE_defvert_remove_group(struct MDeformVert *dvert, struct MDeformWeight *dw);
+void BKE_defvert_clear(struct MDeformVert *dvert);
+int BKE_defvert_find_shared(const struct MDeformVert *dvert_a, const struct MDeformVert *dvert_b);
+bool BKE_defvert_is_weight_zero(const struct MDeformVert *dvert, const int defgroup_tot);
void BKE_defvert_array_free_elems(struct MDeformVert *dvert, int totvert);
void BKE_defvert_array_free(struct MDeformVert *dvert, int totvert);
void BKE_defvert_array_copy(struct MDeformVert *dst, const struct MDeformVert *src, int totvert);
-float defvert_find_weight(const struct MDeformVert *dvert, const int defgroup);
-float defvert_array_find_weight_safe(const struct MDeformVert *dvert,
- const int index,
- const int defgroup);
+float BKE_defvert_find_weight(const struct MDeformVert *dvert, const int defgroup);
+float BKE_defvert_array_find_weight_safe(const struct MDeformVert *dvert,
+ const int index,
+ const int defgroup);
float BKE_defvert_multipaint_collective_weight(const struct MDeformVert *dv,
int defbase_tot,
@@ -73,45 +73,47 @@ float BKE_defvert_multipaint_collective_weight(const struct MDeformVert *dv,
int defbase_tot_sel,
bool do_autonormalize);
-void defvert_copy(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src);
-void defvert_copy_subset(struct MDeformVert *dvert_dst,
- const struct MDeformVert *dvert_src,
- const bool *vgroup_subset,
- const int vgroup_tot);
-void defvert_mirror_subset(struct MDeformVert *dvert_dst,
- const struct MDeformVert *dvert_src,
- const bool *vgroup_subset,
- const int vgroup_tot,
- const int *flip_map,
- const int flip_map_len);
-void defvert_copy_index(struct MDeformVert *dvert_dst,
- const int defgroup_dst,
- const struct MDeformVert *dvert_src,
- const int defgroup_src);
-void defvert_sync(struct MDeformVert *dvert_dst,
- const struct MDeformVert *dvert_src,
- const bool use_verify);
-void defvert_sync_mapped(struct MDeformVert *dvert_dst,
- const struct MDeformVert *dvert_src,
- const int *flip_map,
- const int flip_map_len,
- const bool use_verify);
-void defvert_remap(struct MDeformVert *dvert, int *map, const int map_len);
-void defvert_flip(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
-void defvert_flip_merged(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
-void defvert_normalize(struct MDeformVert *dvert);
-void defvert_normalize_subset(struct MDeformVert *dvert,
- const bool *vgroup_subset,
- const int vgroup_tot);
-void defvert_normalize_lock_single(struct MDeformVert *dvert,
- const bool *vgroup_subset,
- const int vgroup_tot,
- const uint def_nr_lock);
-void defvert_normalize_lock_map(struct MDeformVert *dvert,
- const bool *vgroup_subset,
- const int vgroup_tot,
- const bool *lock_flags,
- const int defbase_tot);
+void BKE_defvert_copy(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src);
+void BKE_defvert_copy_subset(struct MDeformVert *dvert_dst,
+ const struct MDeformVert *dvert_src,
+ const bool *vgroup_subset,
+ const int vgroup_tot);
+void BKE_defvert_mirror_subset(struct MDeformVert *dvert_dst,
+ const struct MDeformVert *dvert_src,
+ const bool *vgroup_subset,
+ const int vgroup_tot,
+ const int *flip_map,
+ const int flip_map_len);
+void BKE_defvert_copy_index(struct MDeformVert *dvert_dst,
+ const int defgroup_dst,
+ const struct MDeformVert *dvert_src,
+ const int defgroup_src);
+void BKE_defvert_sync(struct MDeformVert *dvert_dst,
+ const struct MDeformVert *dvert_src,
+ const bool use_verify);
+void BKE_defvert_sync_mapped(struct MDeformVert *dvert_dst,
+ const struct MDeformVert *dvert_src,
+ const int *flip_map,
+ const int flip_map_len,
+ const bool use_verify);
+void BKE_defvert_remap(struct MDeformVert *dvert, int *map, const int map_len);
+void BKE_defvert_flip(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
+void BKE_defvert_flip_merged(struct MDeformVert *dvert,
+ const int *flip_map,
+ const int flip_map_len);
+void BKE_defvert_normalize(struct MDeformVert *dvert);
+void BKE_defvert_normalize_subset(struct MDeformVert *dvert,
+ const bool *vgroup_subset,
+ const int vgroup_tot);
+void BKE_defvert_normalize_lock_single(struct MDeformVert *dvert,
+ const bool *vgroup_subset,
+ const int vgroup_tot,
+ const uint def_nr_lock);
+void BKE_defvert_normalize_lock_map(struct MDeformVert *dvert,
+ const bool *vgroup_subset,
+ const int vgroup_tot,
+ const bool *lock_flags,
+ const int defbase_tot);
/* Utilities to 'extract' a given vgroup into a simple float array,
* for verts, but also edges/polys/loops. */