Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-23 05:37:08 +0300
committerCampbell Barton <campbell@blender.org>2022-05-23 05:37:08 +0300
commitc92f137a7556fe4a6b9256794ff741be2bf552fd (patch)
tree6c496f8e5b9cfb9e5c90154fffa0d756a4f6abdc
parent341f1e444f8eac85d0cee4a017d8e3596335dcc0 (diff)
parent47b0ca85cd9596bc4948b15a77b45cbd7812554c (diff)
Merge branch 'blender-v3.2-release'
-rw-r--r--release/scripts/modules/rna_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index 687f3c95d0b..76b59e4e816 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -61,7 +61,8 @@ def range_str(val):
def float_as_string(f):
val_str = "%g" % f
- if '.' not in val_str and '-' not in val_str: # value could be 1e-05
+ # Ensure a `.0` suffix for whole numbers, excluding scientific notation such as `1e-05` or `1e+5`.
+ if '.' not in val_str and 'e' not in val_str:
val_str += '.0'
return val_str