Commit 0fd19f16 authored by Anthony Kleine's avatar Anthony Kleine

Broken polyListStrings

parent fbc12f9a
Pipeline #1881368 skipped
......@@ -295,8 +295,8 @@ public class InteriorBuilder
int planeStart = surfaces.getObject(i).getPlaneIndex();
short hullCount = (short)surfaces.getObject(i).getWindingCount();
short surfaceCount = 1;
int polyListPlaneStart = 0;
int polyListPointStart = 0;
int polyListPlaneStart = i;
int polyListPointStart = i*3;
int polyListStringStart = 0;
short searchTag = 0;
boolean staticMesh = false;
......@@ -387,6 +387,7 @@ public class InteriorBuilder
polyByteStrings.add((byte)mesh.getIndices()[1+(i*3)]);
polyByteStrings.add((byte)0);
polyByteStrings.add((byte)mesh.getIndices()[2+(i*3)]);
convexHulls[i].setPolyListStringStart(i*19);
}
byte[] polyListStrings = new byte[polyByteStrings.size()];
for (int i = 0; i < polyByteStrings.size(); i++) {
......
......@@ -131,6 +131,11 @@ public class ConvexHull
return this.polyListStringStart;
}
public void setPolyListStringStart(int polyListStringStart)
{
this.polyListStringStart = polyListStringStart;
}
public short getSearchTag()
{
return this.searchTag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment