diff --git a/BlenderCOL.py b/BlenderCOL.py index 1f89944..eac9642 100644 --- a/BlenderCOL.py +++ b/BlenderCOL.py @@ -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)