[Bf-blender-cvs] [c881ce7] cycles-ptex-06: Remove ifdef'd code
Nicholas Bishop
noreply at git.blender.org
Thu Jan 15 20:13:07 CET 2015
Commit: c881ce70aa28b155c5654956002b51af20df1255
Author: Nicholas Bishop
Date: Thu Jan 8 11:48:52 2015 +0100
Branches: cycles-ptex-06
https://developer.blender.org/rBc881ce70aa28b155c5654956002b51af20df1255
Remove ifdef'd code
===================================================================
M intern/cycles/blender/blender_mesh.cpp
===================================================================
diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp
index 1e8df2a..4df5519 100644
--- a/intern/cycles/blender/blender_mesh.cpp
+++ b/intern/cycles/blender/blender_mesh.cpp
@@ -378,34 +378,6 @@ static void create_mesh(Scene *scene, Mesh *mesh, BL::Mesh b_mesh, const vector<
}
cur_tessface++;
}
-#if 0
- const size_t num_tess = fi;
- size_t cur_tess = 0;
-
- for (cur_tess = 0; cur_tess < num_tess; cur_tess++) {
- // TODO: cur_tess isn't really the correct ptex id (at
- // least not necessarily)
- float ptex_id = (float)cur_tess;
-
- face_id[cur_tri] = ptex_id;
-
- // TODO: uvs just for test, total nonsense
-
- // uv[cur_tri * 3 + 0] = make_float3(0, 0, 0);
- // uv[cur_tri * 3 + 1] = make_float3(1, 0, 0);
- // uv[cur_tri * 3 + 2] = make_float3(1, 1, 0);
- cur_tri++;
-
- if (nverts[cur_tess] == 4) {
- face_id[cur_tri] = ptex_id;
-
- // uv[cur_tri * 3 + 0] = make_float3(0, 0, 0);
- // uv[cur_tri * 3 + 1] = make_float3(1, 1, 0);
- // uv[cur_tri * 3 + 2] = make_float3(0, 1, 0);
- cur_tri++;
- }
- }
-#endif
}
/* create vertex color attributes */
More information about the Bf-blender-cvs
mailing list