Skip to content

Commit

Permalink
improved parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
majimboo authored May 20, 2017
1 parent 33e0834 commit 40b72f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions noesis/plugins/python/fmt_artstation_mview.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def loadModel(data, mdlList):

for f in range(indexCount2):
if indexTypeSize == 2:
idxList.append(df.readShort())
idxList.append(df.readUShort())
else:
idxList.append(df.readInt())
idxList.append(df.readUInt())

mesh = NoeMesh(idxList, posList)
mesh.setName("%s_%d" % (name, i))
Expand Down Expand Up @@ -127,9 +127,9 @@ def extract(bs):
while not bs.checkEOF():
name = bs.readString()
ftype = bs.readString()
c = bs.readInt()
d = bs.readInt()
e = bs.readInt()
c = bs.readUInt()
d = bs.readUInt()
e = bs.readUInt()
bin = bs.readBytes(d)
if c & 1:
bin = decompress(bin, e)
Expand Down Expand Up @@ -216,4 +216,4 @@ def loadTex(files, fname):
tex = rapi.loadTexByHandler(data, ftype)
tex.name = fname

return tex
return tex

0 comments on commit 40b72f1

Please sign in to comment.