[Bf-blender-cvs] [47a3530] alembic_basic_io: From review: use MPoly instead of MFace for poly data.

Kévin Dietrich noreply at git.blender.org
Mon Jun 20 18:59:33 CEST 2016


Commit: 47a35309c31bfe822418bf5eb8de92a66ae1ff54
Author: Kévin Dietrich
Date:   Mon Jun 20 16:40:55 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB47a35309c31bfe822418bf5eb8de92a66ae1ff54

>From review: use MPoly instead of MFace for poly data.

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

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 6d337eb..38fb02d 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -144,11 +144,11 @@ void get_material_indices(DerivedMesh *dm, std::vector<int32_t> &indices)
 	indices.clear();
 	indices.reserve(dm->getNumTessFaces(dm));
 
-	MFace *faces = dm->getTessFaceArray(dm);
+	MPoly *mpolys = dm->getPolyArray(dm);
 
-	for (int i = 1, e = dm->getNumTessFaces(dm); i < e; ++i) {
-		MFace *face = &faces[i];
-		indices.push_back(face->mat_nr);
+	for (int i = 1, e = dm->getNumPolys(dm); i < e; ++i) {
+		MPoly *mpoly = &mpolys[i];
+		indices.push_back(mpoly->mat_nr);
 	}
 }




More information about the Bf-blender-cvs mailing list