Merge pull request #415 from olitheolix/master
Replaced 'xrange' by 'range' to maintain Python 3.x compatibility.pull/419/head
commit
b450ecbed2
|
@ -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
|
# It is faster and more correct to have an init function for each assimp class
|
||||||
def _init_face(aiFace):
|
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 }
|
assimp_struct_inits = { structs.Face : _init_face }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue