bugfix: Wasn't skipping over a defunct field in version 7 and under files.

master
TigerKat 5 years ago
parent 8075c65c21
commit a2515dc7f3

@ -652,6 +652,9 @@ class Model:
self.name = extractString(self.geo.header_objname_data, self.name_ptr) self.name = extractString(self.geo.header_objname_data, self.name_ptr)
#self.geo.header_offset = final_offset - 12 - 2 #self.geo.header_offset = final_offset - 12 - 2
if self.geo.version <= 7:
#lightmap_size
self.geo.header_offset += 4
if self.geo.version >= 7: if self.geo.version >= 7:
self.autolod_dists = list(self.geo.getHeaderElement("<fff")) self.autolod_dists = list(self.geo.getHeaderElement("<fff"))
else: else:

Loading…
Cancel
Save