Replaced 'xrange' by 'range' to maintain Python 3.x compatibility.

pull/415/head
Oliver Nagy 2014-11-22 16:24:32 +11:00
parent 7be4badd76
commit f12a0a3b1c
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def make_tuple(ai_obj, type = None):
# It is faster and more correct to have an init function for each assimp class
def _init_face(aiFace):
aiFace.indices = [aiFace.mIndices[i] for i in xrange(aiFace.mNumIndices)]
aiFace.indices = [aiFace.mIndices[i] for i in range(aiFace.mNumIndices)]
assimp_struct_inits = { structs.Face : _init_face }