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:
authorJulian Eisel <julian@blender.org>2020-03-16 20:13:37 +0300
committerJulian Eisel <julian@blender.org>2020-03-16 20:13:37 +0300
commitd2ef342b2a50a7eac725889708fd689ffa126e25 (patch)
treed6606e846b40bf517ab13477003e5e556ae26b66 /source/blender/editors/space_text/text_format_py.c
parentcb6cec904fa14ce0ab10a2a53af5c936d56376cf (diff)
parente42f61dda8b635511f083c09ccda5db9d28ec172 (diff)
Merge branch 'master' into temp-openxr-ghostxr
Diffstat (limited to 'source/blender/editors/space_text/text_format_py.c')
-rw-r--r--source/blender/editors/space_text/text_format_py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c
index 48c522c5e1b..1e628bbc39b 100644
--- a/source/blender/editors/space_text/text_format_py.c
+++ b/source/blender/editors/space_text/text_format_py.c
@@ -291,7 +291,7 @@ static int txtfmt_py_literal_numeral(const char *string, char prev_fmt)
}
/* Previous was a number; if immediately followed by '.' it's a floating point decimal number.
* Note: keep the decimal point, it's needed to allow leading zeros. */
- if ((prev_fmt == FMT_TYPE_NUMERAL) && (first == '.')) {
+ if (first == '.') {
return txtfmt_py_find_numeral_inner(string);
}
/* "Imaginary" part of a complex number ends with 'j' */