From f51ef8ac4d3f94036463fac9fb59ec8266e0197d Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 2 Mar 2016 18:09:32 +0100 Subject: Correction to own previous rB9c0de0084bfe. '1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again... --- source/blender/blenkernel/intern/unit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/unit.c') 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; -- cgit v1.2.3