Merge branch 'blender-v2.91-release' into master
This commit is contained in:
commit
37b155420b
|
@ -815,6 +815,12 @@ static char *find_next_op(const char *str, char *remaining_str, int len_max)
|
|||
|
||||
/* Make sure we don't look backwards before the start of the string. */
|
||||
if (remaining_str != str && i != 0) {
|
||||
/* Check for velocity or acceleration (e.g. '/' in 'ft/s' is not an op). */
|
||||
if ((remaining_str[i] == '/') && ELEM(remaining_str[i - 1], 't', 'T', 'm', 'M') &&
|
||||
ELEM(remaining_str[i + 1], 's', 'S')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Check for scientific notation. */
|
||||
if (ELEM(remaining_str[i - 1], 'e', 'E')) {
|
||||
scientific_notation = true;
|
||||
|
|
Loading…
Reference in New Issue