[Bf-blender-cvs] [5468cc0aae2] soc-2020-io-performance: Fix wrong curve indices: missing parentheses.

Ankit Meel noreply at git.blender.org
Sat Jul 18 19:53:20 CEST 2020


Commit: 5468cc0aae252df4656458b5388f6ed8d494f341
Author: Ankit Meel
Date:   Sat Jul 18 23:23:16 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rB5468cc0aae252df4656458b5388f6ed8d494f341

Fix wrong curve indices: missing parentheses.

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

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

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

diff --git a/source/blender/io/wavefront_obj/intern/wavefront_obj_ex_file_writer.cc b/source/blender/io/wavefront_obj/intern/wavefront_obj_ex_file_writer.cc
index 0d9c9fbc8aa..333cd83c674 100644
--- a/source/blender/io/wavefront_obj/intern/wavefront_obj_ex_file_writer.cc
+++ b/source/blender/io/wavefront_obj/intern/wavefront_obj_ex_file_writer.cc
@@ -407,7 +407,7 @@ void OBJWriter::write_nurbs_curve(OBJNurbs &obj_nurbs_data)
      */
     fprintf(outfile_, "curv 0.0 1.0");
     for (int i = 0; i < curv_num; i++) {
-      fprintf(outfile_, " %d", -1 * (i % tot_points) + 1);
+      fprintf(outfile_, " %d", -1 * ((i % tot_points) + 1));
     }
     fprintf(outfile_, "\n");



More information about the Bf-blender-cvs mailing list