Fix crash when loading Blender due to recent change

Issue introduced in {rB80859a6cb272}

Only seen on Windows.

The `keyword_parse` lambda function code did not consider `\r` as a
whitespace char, resulting in a wrong parse.

(More investigation needs to be done).
This commit is contained in:
Germano Cavalcante 2022-04-14 15:53:49 -03:00
parent 05715eaea1
commit 48d2f536e1
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #98190, Render of 3D image is very slow
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ struct GPUSource {
{
const StringRefNull input = source;
const char whitespace_chars[] = " \n\t";
const char whitespace_chars[] = " \r\n\t";
auto function_parse = [&](const StringRef &input,
int64_t &cursor,