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

Nicholas Bishop noreply at git.blender.org
Wed Jan 28 19:40:44 CET 2015


Commit: 74bc9def8c6f33a4dff5bdbf6d73e126fdf56a95
Author: Nicholas Bishop
Date:   Mon Jan 26 12:39:58 2015 +0100
Branches: cycles-ptex-19
https://developer.blender.org/rB74bc9def8c6f33a4dff5bdbf6d73e126fdf56a95

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