bugfix: BoneInfo structure needs two ptr at the end for use in the game.

master
TigerKat 5 years ago
parent 5ce02d497a
commit ca990f4bd3

@ -794,6 +794,7 @@ class Model:
self.pack_reductions = self.geo.encodeMainDataPacked(self.reductions_data)
self.pack_reflection_quads = self.geo.encodeMainDataPacked(self.reflection_quads_data)
bone_data = struct.pack("<" + "i" * (1 + 15), self.bone_count, *self.bone_ids)
bone_data += struct.pack("<ii", 0, 0) #weights_ptr and matidx_ptr place holders, needed by the game
self.boneinfo_ptr = self.geo.encodeMainData(bone_data)
#Encode shared header data

Loading…
Cancel
Save