Archived
1
0
Fork 0

Fixed collision paramter grouping bug

This commit is contained in:
Augs 2018-08-12 15:30:14 +01:00
parent c8150cd763
commit b0d6bd61c0

View file

@ -67,7 +67,7 @@ class Triangle:
self.ColType = 0
self.TerrainType = 0
self.unknown = 0
self.ColParameter = None
self.ColParameter = 0
@property
def has_ColParameter(self):
@ -125,6 +125,7 @@ def pack(stream,vertices,triangles): #pack triangles into col file
else:
group.ColParameter_offset = stream.tell()
for triangle in group.triangles:
print(triangle.ColParameter)
uint16.pack(stream,triangle.ColParameter)
stream.seek(header.group_offset)