diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-09 03:10:37 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-09 03:11:25 +0300 |
commit | 84906d47dc8ae7e0739865dbcba727f29c0632e9 (patch) | |
tree | 44a33bcf2a7491250b4e261b50bf8e359c9fb37d /source/blender/blenkernel/intern | |
parent | 8b8fbffeea21a7f063ee60ab95113e0f14e38555 (diff) |
Cleanup: format
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 2520ce5179f..a187f267879 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -467,10 +467,11 @@ static size_t unit_as_string(char *str, * to replace 'scientific notation' in those cases. */ prec -= integer_digits_d(value_conv); - /* Negative precision is used to disable stripping of zeroes. This reduces text jumping when changing values. */ + /* Negative precision is used to disable stripping of zeroes. + * This reduces text jumping when changing values. */ if (prec < 0) { - strip_skip = true; - prec *= -1; + strip_skip = true; + prec *= -1; } CLAMP(prec, 0, 6); |