Commit 5c36ee6e authored by frankie's avatar frankie 💬

switched blender export module to uint for all ids

parent 9fafe10d
......@@ -694,7 +694,9 @@ class SSMesh():
file.write(bytearray(txt, 'utf8'))
def serialise_int(self, file, i):
file.write(struct.pack('i', int(i)))
# using unsigned integer by default!
# if you need to store negative numbers, use float
file.write(struct.pack('I', int(i)))
def serialise_float(self, file, i):
file.write(struct.pack('f', float(i)))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment