[Bf-blender-cvs] [d31886b3fe3] master: Cleanup: braces around statements in OBJ parser

Aras Pranckevicius noreply at git.blender.org
Sat Jul 30 12:10:46 CEST 2022


Commit: d31886b3fe3b939fb86079d5fb607e80103078da
Author: Aras Pranckevicius
Date:   Sat Jul 30 13:10:35 2022 +0300
Branches: master
https://developer.blender.org/rBd31886b3fe3b939fb86079d5fb607e80103078da

Cleanup: braces around statements in OBJ parser

===================================================================

M	source/blender/io/wavefront_obj/importer/obj_import_string_utils.cc

===================================================================

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') {



More information about the Bf-blender-cvs mailing list