From 827959ff98e77739e5753789ad645d4b53cca3c9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Jun 2020 16:08:34 +1000 Subject: Cleanup: use const arguments to deform functions This changes curve deform code not to set the objects inverse matrix, this shouldn't cause problems as it's not used elsewhere afterwards. --- source/blender/blenkernel/BKE_deform.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source/blender/blenkernel/BKE_deform.h') diff --git a/source/blender/blenkernel/BKE_deform.h b/source/blender/blenkernel/BKE_deform.h index c86b877b575..04b85aebb39 100644 --- a/source/blender/blenkernel/BKE_deform.h +++ b/source/blender/blenkernel/BKE_deform.h @@ -40,14 +40,16 @@ struct bDeformGroup; 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, +struct bDeformGroup *BKE_object_defgroup_find_name(const struct Object *ob, const char *name); +int *BKE_object_defgroup_flip_map(const struct Object *ob, + int *flip_map_len, + const bool use_default); +int *BKE_object_defgroup_flip_map_single(const 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); +int BKE_object_defgroup_flip_index(const struct Object *ob, int index, const bool use_default); +int BKE_object_defgroup_name_index(const struct Object *ob, const char *name); void BKE_object_defgroup_unique_name(struct bDeformGroup *dg, struct Object *ob); struct MDeformWeight *BKE_defvert_find_index(const struct MDeformVert *dv, const int defgroup); -- cgit v1.2.3