diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-11 15:46:19 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-11 15:53:02 +0300 |
commit | 87978ff5602991a17e712b63bbf36556f4ce00dc (patch) | |
tree | 1ac98200ec64b146301536978bbbffb6b7705517 /source/blender/blenlib/intern | |
parent | fbf92f5967980691a94633fa4b7e14311adf1d16 (diff) |
Cleanup: rename BLI_str_format_attribute_domain_size
This is useful without any functionality specific to attribute domains,
rename to `BLI_str_format_decimal_unit` to follow naming of a similar
function `BLI_str_format_byte_unit`.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 8387eb5f4f9..976b9a5cd02 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -1155,7 +1155,7 @@ void BLI_str_format_byte_unit(char dst[15], long long int bytes, const bool base BLI_strncpy(dst + len, base_10 ? units_base_10[order] : units_base_2[order], dst_len - len); } -void BLI_str_format_attribute_domain_size(char dst[7], int number_to_format) +void BLI_str_format_decimal_unit(char dst[7], int number_to_format) { float number_to_format_converted = number_to_format; int order = 0; |