[Bf-blender-cvs] [d21b3ff6809] soc-2020-io-performance: Cleanup: unused headers, minor edits in comments

Ankit Meel noreply at git.blender.org
Mon Jun 15 10:43:16 CEST 2020


Commit: d21b3ff680909ea555a1705f752bc46e50ce0dd0
Author: Ankit Meel
Date:   Mon Jun 15 14:13:11 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rBd21b3ff680909ea555a1705f752bc46e50ce0dd0

Cleanup: unused headers, minor edits in comments

Since fstream was removed, these headers are useless here.

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

M	source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc

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

diff --git a/source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc b/source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc
index 8e9ddc0163a..1982a103bfc 100644
--- a/source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc
+++ b/source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc
@@ -21,9 +21,6 @@
  * \ingroup obj
  */
 
-#include <fstream>
-#include <iostream>
-
 #include "DNA_object_types.h"
 
 #include "wavefront_obj.hh"
@@ -90,7 +87,7 @@ static void write_geomtery_per_object(FILE *outfile,
     const Polygon &polygon = object_to_export.polygon_list[i];
     fprintf(outfile, "f ");
     for (int j = 0; j < polygon.total_vertices_per_poly; j++) {
-      /* + 1: This loop index is 0-based. Indices in OBJ start from 1. */
+      /* i + 1: This loop index is 0-based. Indices in OBJ start from 1. */
       fprintf(outfile,
               "%d/%d/%d ",
               polygon.vertex_index[j] + offset[0],
@@ -114,7 +111,7 @@ void write_object_fprintf(const char *filepath,
   }
 
   /**
-   * index_offset[x]: All previous vertex, uv vertex and normal indices are added in subsequent
+   * index_offset[x]: All previous vertex, UV vertex and normal indices are added in subsequent
    * objects' indices.
    */
   uint index_offset[3] = {0, 0, 0};



More information about the Bf-blender-cvs mailing list