Hi there, Anyone familiar with CustomData and tessface here? I'm trying to figure out why this function is only working for the first face: https://github.com/dfelinto/blender-git/blob/bake-cycles/source/blender/render/intern/source/bake_new.c#L104
I'm getting bad data when trying to read the MTFace for any face that is not the first one: ((MTFace *)&cdl[0])->uv {0.500000238, 1}, {0, 0}, {1, 0}, {0, 0}} ((MTFace *)&cdl[1])->uv {{0, 0}, {0.500000238, 1}, {0, 0}, {0, 0}} ((MTFace *)&cdl[2])->uv {{7.87199301e+31, 1.17082983e-19}, {2.17010503e-18, 2.61866902e+20}, {2.61048549e+20, 2.95921708e+21}, { 6.9779858e+22, 4.66808809e+24}} As you can see the 2nd face is bad (2 verts are at 0, 0) and the 3rd one is totally bogus. The mesh itself is very simple, if you want to check out (it's the one in 3-Tris): http://www.pasteall.org/blend/26092 While at there another question: Is there any way to get the number of verts of a MTFace? Thanks, Dalai -- blendernetwork.org/dalai-felinto www.dalaifelinto.com _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers