mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 17:44:42 +00:00
Added mask to CCModel.generateBlock
Fixed misleading variable name in MultiIconTransformation.setIconIndex
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user