[Bf-blender-cvs] [a89bd1a] alembic_basic_io: Slight cleanup.

Kévin Dietrich noreply at git.blender.org
Wed Jun 15 11:23:36 CEST 2016


Commit: a89bd1a81b1d192b58a3c8c87daaa14b9d90a1b4
Author: Kévin Dietrich
Date:   Wed Jun 15 11:12:36 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rBa89bd1a81b1d192b58a3c8c87daaa14b9d90a1b4

Slight cleanup.

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

M	source/blender/alembic/intern/abc_mesh.cc

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

diff --git a/source/blender/alembic/intern/abc_mesh.cc b/source/blender/alembic/intern/abc_mesh.cc
index 42d626f..c611d8a 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -304,16 +304,14 @@ static void get_normals(DerivedMesh *dm, std::vector<float> &normals)
 		}
 
 		for (int j = 0; j < mp->totloop; ++ml, ++j) {
-			int index = ml->v;
+			const int index = ml->v;
 
 			/* Smooth shaded, use individual vert normals. */
 			if (mp->flag & ME_SMOOTH) {
 				normal_short_to_float_v3(no, verts[index].no);
-				copy_zup_yup(&normals[index * 3], no);
-			}
-			else {
-				copy_zup_yup(&normals[index * 3], no);
 			}
+
+			copy_zup_yup(&normals[index * 3], no);
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list