Fixed collision paramter grouping bug
This commit is contained in:
parent
c8150cd763
commit
b0d6bd61c0
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Triangle:
|
||||||
self.ColType = 0
|
self.ColType = 0
|
||||||
self.TerrainType = 0
|
self.TerrainType = 0
|
||||||
self.unknown = 0
|
self.unknown = 0
|
||||||
self.ColParameter = None
|
self.ColParameter = 0
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_ColParameter(self):
|
def has_ColParameter(self):
|
||||||
|
@ -125,6 +125,7 @@ def pack(stream,vertices,triangles): #pack triangles into col file
|
||||||
else:
|
else:
|
||||||
group.ColParameter_offset = stream.tell()
|
group.ColParameter_offset = stream.tell()
|
||||||
for triangle in group.triangles:
|
for triangle in group.triangles:
|
||||||
|
print(triangle.ColParameter)
|
||||||
uint16.pack(stream,triangle.ColParameter)
|
uint16.pack(stream,triangle.ColParameter)
|
||||||
|
|
||||||
stream.seek(header.group_offset)
|
stream.seek(header.group_offset)
|
||||||
|
|
Reference in a new issue