From b0d6bd61c0bec7de250e9ee3913f65b96596a6e2 Mon Sep 17 00:00:00 2001 From: Augs Date: Sun, 12 Aug 2018 15:30:14 +0100 Subject: [PATCH] Fixed collision paramter grouping bug --- BlenderCOL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)