1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-02-17 10:08:31 +01:00

Removed some unhelpful comments and TODOs.

This commit is contained in:
Colin Basnett 2021-08-14 22:59:05 -07:00
parent 32cadbfe31
commit 0d03e49da3
2 changed files with 0 additions and 3 deletions

View File

@ -127,7 +127,6 @@ class PskBuilder(object):
# WEDGES
uv_layer = object.data.uv_layers.active.data
# needs to be additive!!!
psk.wedges.extend([wedge_type() for _ in range(len(object.data.loops))])
for loop_index, loop in enumerate(object.data.loops):

View File

@ -19,13 +19,11 @@ class PskExporter(object):
fp.write(datum)
def export(self, path: str):
# TODO: add logic somewhere to assert lengths of ctype structs
with open(path, 'wb') as fp:
self.write_section(fp, b'ACTRHEAD')
self.write_section(fp, b'PNTS0000', Vector3, self.psk.points)
# WEDGES
# TODO: this really should be on the level of the builder, not the exporter
if len(self.psk.wedges) <= 65536:
wedge_type = Psk.Wedge16
else: