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 19:57:03 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-03-02 20:02:19 +0300
commit9c0de0084bfed50a78798c1f0df51fef0ce9e2bd (patch)
tree8563efd4a5adbedb9d997c5f410b200847f418a4 /source/blenderplayer
parentbee0a7587b4733c222edf336c73a7b200b77de02 (diff)
Fix T47661: cm (centimeter) unit breaks m (meter) unit in Metric.
`m` unit when used after `cm`/`mm`/etc. ones would get ignored, and the alt version of miles would be used instead. The root of the issue is that, in `unit_find_str`, once we get a 'hit' for a unit, we check it's actual unit (since 'm' would also hit on 'cm', 'mm', etc.). In case that hit is not a valid unit one, we would just return NULL, breaking the cycle of checks over that unit, and hence missing all later usages of it. So now, in case we have an 'invalid unit hit', we immediately retry to find it within remaining string.
Diffstat (limited to 'source/blenderplayer')
0 files changed, 0 insertions, 0 deletions