Cleanup: minor changes to unit comments
This commit is contained in:
@@ -22,8 +22,9 @@ struct UnitSettings;
|
||||
* \param pad: When true & `prec` is positive, stripped zeroes will be replaced with a space
|
||||
* instead of being removed.
|
||||
*
|
||||
* \note disabling stripping or enabling padding reduces text "jittering" when changing values.
|
||||
* Especially with mono-spaced fonts.
|
||||
* \note Disabling stripping or enabling padding reduces text "jittering" when changing values,
|
||||
* especially with mono-spaced fonts. However, the values will take up more space,
|
||||
* so the default is good when there is little movement (e.g. numerical input or mesh overlays).
|
||||
*/
|
||||
size_t BKE_unit_value_as_string(char *str,
|
||||
int str_maxncpy,
|
||||
|
||||
@@ -1855,7 +1855,7 @@ static size_t unit_as_string_main(char *str,
|
||||
if (split && unit_should_be_split(type)) {
|
||||
int length = unit_as_string_split_pair(
|
||||
str, str_maxncpy, value, prec, do_rstrip_zero, usys, main_unit);
|
||||
/* Failed when length is negative, fall back to no split. */
|
||||
/* Split failed when length is negative, fall back to no split. */
|
||||
if (length >= 0) {
|
||||
return length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user