From 7ce833af5b08ca47c201aab33ab5d6b8fde69486 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 16 Jan 2017 20:08:46 +0100 Subject: Cleanup/refactor: get rid of fixed name limit in BKE_deform_flip_side_name & co. Those were forcing to use vgroup name define in bones area, or even mixing with maxbonename... ugly, and totally avoidable. --- source/blender/blenkernel/BKE_deform.h | 7 +++---- 1 file changed, 3 insertions(+), 4 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 8756f73df72..a6d1139648d 100644 --- a/source/blender/blenkernel/BKE_deform.h +++ b/source/blender/blenkernel/BKE_deform.h @@ -119,10 +119,9 @@ void BKE_defvert_extract_vgroup_to_polyweights( /* utility function, note that MAX_VGROUP_NAME chars is the maximum string length since its only * used with defgroups currently */ -void BKE_deform_split_suffix(const char string[MAX_VGROUP_NAME], char base[MAX_VGROUP_NAME], char ext[MAX_VGROUP_NAME]); -void BKE_deform_split_prefix(const char string[MAX_VGROUP_NAME], char base[MAX_VGROUP_NAME], char ext[MAX_VGROUP_NAME]); +void BKE_deform_split_suffix(const char *string, char *r_body, char *r_suf, const size_t str_len); +void BKE_deform_split_prefix(const char *string, char *r_pre, char *r_body, const size_t str_len); -void BKE_deform_flip_side_name(char name[MAX_VGROUP_NAME], const char from_name[MAX_VGROUP_NAME], - const bool strip_number); +void BKE_deform_flip_side_name(char *r_name, const char *from_name, const bool strip_number, const size_t name_len); #endif /* __BKE_DEFORM_H__ */ -- cgit v1.2.3