[Bf-blender-cvs] [52802002756] soc-2020-io-performance: Exporter: Cleanup: clang-format, comment

Ankit Meel noreply at git.blender.org
Fri Dec 11 22:08:14 CET 2020


Commit: 52802002756f8e1c53cf68559a532ed0bc7b62cb
Author: Ankit Meel
Date:   Sat Dec 12 02:16:55 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rB52802002756f8e1c53cf68559a532ed0bc7b62cb

Exporter: Cleanup: clang-format, comment

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

M	source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
M	source/blender/io/wavefront_obj/exporter/obj_export_io.hh

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

diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
index 5f55bcf241d..4be07be14a9 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
@@ -361,6 +361,7 @@ void OBJWriter::write_poly_elements(const OBJMesh &obj_mesh_data)
     (this->*poly_element_writer)(
         poly_vertex_indices, obj_mesh_data.uv_indices(i), poly_normal_indices);
   }
+  /* Unusual: Other indices are updated in #OBJWriter::update_index_offsets. */
   index_offsets_.normal_offset += per_object_tot_normals;
 }
 
diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_io.hh b/source/blender/io/wavefront_obj/exporter/obj_export_io.hh
index 8af03e1dfd6..1665414b027 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_io.hh
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_io.hh
@@ -287,7 +287,7 @@ template<eFileType filetype> class FileHandler : NonCopyable, NonMovable {
   }
 
   template<typename FileTypeTraits<filetype>::SyntaxType key, typename... T>
-  constexpr void write(T &&...args) const
+  constexpr void write(T &&... args) const
   {
     constexpr Formatting<filetype> fmt_nargs_valid = syntax_elem_to_formatting<filetype, T...>(
         key);
@@ -328,13 +328,13 @@ template<eFileType filetype> class FileHandler : NonCopyable, NonMovable {
 
   template<int total_args, typename... T>
   constexpr std::enable_if_t<(total_args != 0), void> write__impl(const char *fmt,
-                                                                  T &&...args) const
+                                                                  T &&... args) const
   {
     std::fprintf(outfile_, fmt, string_to_primitive(std::forward<T>(args))...);
   }
   template<int total_args, typename... T>
   constexpr std::enable_if_t<(total_args == 0), void> write__impl(const char *fmt,
-                                                                  T &&...args) const
+                                                                  T &&... args) const
   {
     std::fputs(fmt, outfile_);
   }



More information about the Bf-blender-cvs mailing list