diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-13 09:08:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-13 09:20:09 +0300 |
commit | 827959ff98e77739e5753789ad645d4b53cca3c9 (patch) | |
tree | 25a35ae07419bcd5b4eb53c17a6b7832c364aca7 /source/blender/blenkernel/intern/deform.c | |
parent | dd4071b379f0b4024e7dc6ee987d5104ddf35fed (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r-- | source/blender/blenkernel/intern/deform.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c index 9a3965a86f6..b97935d57f2 100644 --- a/source/blender/blenkernel/intern/deform.c +++ b/source/blender/blenkernel/intern/deform.c @@ -486,14 +486,14 @@ void BKE_defvert_flip_merged(MDeformVert *dvert, const int *flip_map, const int } } -bDeformGroup *BKE_object_defgroup_find_name(Object *ob, const char *name) +bDeformGroup *BKE_object_defgroup_find_name(const Object *ob, const char *name) { return (name && name[0] != '\0') ? BLI_findstring(&ob->defbase, name, offsetof(bDeformGroup, name)) : NULL; } -int BKE_object_defgroup_name_index(Object *ob, const char *name) +int BKE_object_defgroup_name_index(const Object *ob, const char *name) { return (name && name[0] != '\0') ? BLI_findstringindex(&ob->defbase, name, offsetof(bDeformGroup, name)) : @@ -503,7 +503,7 @@ int BKE_object_defgroup_name_index(Object *ob, const char *name) /** * \note caller must free. */ -int *BKE_object_defgroup_flip_map(Object *ob, int *flip_map_len, const bool use_default) +int *BKE_object_defgroup_flip_map(const Object *ob, int *flip_map_len, const bool use_default) { int defbase_tot = *flip_map_len = BLI_listbase_count(&ob->defbase); @@ -545,7 +545,7 @@ int *BKE_object_defgroup_flip_map(Object *ob, int *flip_map_len, const bool use_ /** * \note caller must free. */ -int *BKE_object_defgroup_flip_map_single(Object *ob, +int *BKE_object_defgroup_flip_map_single(const Object *ob, int *flip_map_len, const bool use_default, int defgroup) @@ -580,7 +580,7 @@ int *BKE_object_defgroup_flip_map_single(Object *ob, } } -int BKE_object_defgroup_flip_index(Object *ob, int index, const bool use_default) +int BKE_object_defgroup_flip_index(const Object *ob, int index, const bool use_default) { bDeformGroup *dg = BLI_findlink(&ob->defbase, index); int flip_index = -1; |