Added mask to CCModel.generateBlock

Fixed misleading variable name in MultiIconTransformation.setIconIndex
This commit is contained in:
Chicken Bones committed 2013-08-21 23:32:16 +10:00
1 parent 3d4e112552
commit 2636721bec
2 files changed
+62 -50

No files matched your search

@@ -28,9 +28,9 @@ public class MultiIconTransformation implements IUVTransformation
return setIconIndex(m, 0, m.verts.length, index);
}
public static CCModel setIconIndex(CCModel m, int start, int length, int index)
public static CCModel setIconIndex(CCModel m, int start, int end, int index)
{
for(int k = start; k < length; k++)
for(int k = start; k < end; k++)
{
UV uv = m.verts[k].uv;
uv.u = uv.u%2+index*2;