[Bf-blender-cvs] [c72e2f4] cycles-ptex-24: WIP, trying out separate types for some of the ptex data

Nicholas Bishop noreply at git.blender.org
Fri Jan 30 18:00:46 CET 2015


Commit: c72e2f4f309fe5e8dc8d0f5f9b395a7fbc618525
Author: Nicholas Bishop
Date:   Mon Jan 26 12:39:58 2015 +0100
Branches: cycles-ptex-24
https://developer.blender.org/rBc72e2f4f309fe5e8dc8d0f5f9b395a7fbc618525

WIP, trying out separate types for some of the ptex data

Too much padding right now, but we'll see

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

M	source/blender/editors/mesh/mesh_data.c

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

diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c
index 4b6eea5..09e760c 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -739,9 +739,10 @@ static int mesh_ptex_add(Mesh *me, const char *name, const bool active_set)
 		{
 			// TODO
 			int i;
+			MPtexTexelInfo texel_info = {4, MPTEX_DATA_TYPE_UINT8};
+			MPtexLogRes logres = {5, 5};
 			for (i = 0; i < me->totloop; i++) {
-				BKE_loop_ptex_init(&layer_data[i], MPTEX_DATA_TYPE_UINT8,
-								   4, 5, 5);
+				BKE_loop_ptex_init(&layer_data[i], texel_info, logres);
 			}
 		}




More information about the Bf-blender-cvs mailing list