diff options
author | Aras Pranckevicius <aras@nesnausk.org> | 2022-07-30 13:10:35 +0300 |
---|---|---|
committer | Aras Pranckevicius <aras@nesnausk.org> | 2022-07-30 13:10:35 +0300 |
commit | d31886b3fe3b939fb86079d5fb607e80103078da (patch) | |
tree | 7292d05e409b49f59fca7b11f2e58e8c4e994429 /source/blender/io/wavefront_obj/importer | |
parent | 1a0fab56b4bcc641548e82e6a5782acf8deb11fa (diff) |
Cleanup: braces around statements in OBJ parser
Diffstat (limited to 'source/blender/io/wavefront_obj/importer')
-rw-r--r-- | source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc b/source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc index 9a457167fca..7e282b164b0 100644 --- a/source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc +++ b/source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc @@ -41,12 +41,14 @@ void fixup_line_continuations(char *p, char *end) while (true) { /* Find next backslash, if any. */ char *backslash = std::find(p, end, '\\'); - if (backslash == end) + if (backslash == end) { break; + } /* Skip over possible whitespace right after it. */ p = backslash + 1; - while (p < end && is_whitespace(*p) && *p != '\n') + while (p < end && is_whitespace(*p) && *p != '\n') { ++p; + } /* If then we have a newline, turn both backslash * and the newline into regular spaces. */ if (p < end && *p == '\n') { |