[Bf-blender-cvs] [b852dd6] alembic_basic_io: Remove unused function.

Kévin Dietrich noreply at git.blender.org
Fri Jun 17 18:09:47 CEST 2016


Commit: b852dd6ee8cf75d6fb61d34031989bc425497eaf
Author: Kévin Dietrich
Date:   Thu Jun 16 22:19:37 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rBb852dd6ee8cf75d6fb61d34031989bc425497eaf

Remove unused function.

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

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

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

diff --git a/source/blender/alembic/intern/abc_mesh.cc b/source/blender/alembic/intern/abc_mesh.cc
index 25445cb..5d743e1 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -1109,31 +1109,3 @@ void read_mpolys(MPoly *mpolys, MLoop *mloops, MLoopUV *mloopuvs, CustomData */*
 		}
 	}
 }
-
-void read_uvs(MPoly *mpolys, MLoop *mloops, MLoopUV *mloopuvs, size_t face_count,
-              const Alembic::AbcGeom::V2fArraySamplePtr &uvs,
-              const Alembic::AbcGeom::UInt32ArraySamplePtr &indices)
-{
-	if (!mloopuvs || !uvs) {
-		return;
-	}
-
-	unsigned int vert_index, loop_index;
-
-	for (int i = 0; i < face_count; ++i) {
-		MPoly &poly = mpolys[i];
-
-		for (int f = 0; f < poly.totloop; ++f) {
-			loop_index = poly.loopstart + f;
-
-			MLoop &loop = mloops[loop_index];
-			vert_index = (*indices)[loop.v];
-
-			const Imath::V2f &uv = (*uvs)[vert_index];
-
-			MLoopUV &loopuv = mloopuvs[loop_index];
-			loopuv.uv[0] = uv[0];
-			loopuv.uv[1] = uv[1];
-		}
-	}
-}
diff --git a/source/blender/alembic/intern/abc_mesh.h b/source/blender/alembic/intern/abc_mesh.h
index 3b194e0..69b35e6 100644
--- a/source/blender/alembic/intern/abc_mesh.h
+++ b/source/blender/alembic/intern/abc_mesh.h
@@ -134,10 +134,6 @@ void read_mpolys(MPoly *mpolys, MLoop *mloops, MLoopUV *mloopuvs, CustomData *pd
                  const Alembic::AbcGeom::UInt32ArraySamplePtr &uvs_indices,
                  const Alembic::AbcGeom::N3fArraySamplePtr &normals);
 
-void read_uvs(MPoly *mpolys, MLoop *mloops, MLoopUV *mloopuvs, size_t face_count,
-              const Alembic::AbcGeom::V2fArraySamplePtr &uvs,
-              const Alembic::AbcGeom::UInt32ArraySamplePtr &indices);
-
 namespace utils {
 
 void mesh_add_verts(struct Mesh *mesh, size_t len);




More information about the Bf-blender-cvs mailing list