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:
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;