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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-03-02 20:09:32 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-03-02 20:12:14 +0300
commitf51ef8ac4d3f94036463fac9fb59ec8266e0197d (patch)
treeb892680cfcd0ac237c30f7d9078e48ac46427c32 /source/blender/blenkernel/intern/unit.c
parentae0901bb097fefd4c6311a08393e7d584193eafe (diff)
Correction to own previous rB9c0de0084bfe.
'1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again...
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r--source/blender/blenkernel/intern/unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c
index e3ea5b9ba3f..3d7ba8276f0 100644
--- a/source/blender/blenkernel/intern/unit.c
+++ b/source/blender/blenkernel/intern/unit.c
@@ -479,7 +479,8 @@ static const char *unit_find_str(const char *str, const char *substr)
}
}
/* If str_found is not a valid unit, we have to check further in the string... */
- str = str_found + 1;
+ for (str_found++; isalpha_or_utf8(*str_found); str_found++);
+ str = str_found;
}
else {
break;