Browse Source

convert_obj_three.py: sorting morph filenames (again :P)

Mr.doob 14 years ago
parent
commit
dedf6a2035
1 changed files with 4 additions and 2 deletions
  1. 4 2
      utils/exporters/convert_obj_three.py

+ 4 - 2
utils/exporters/convert_obj_three.py

@@ -846,7 +846,9 @@ def convert_ascii(infile, morphfiles, outfile):
     
     morphData = []
     for mfilepattern in morphfiles.split():
-        for path in glob.glob(mfilepattern):
+        matches = glob.glob(mfilepattern)
+        matches.sort()
+        for path in matches:
             normpath = os.path.normpath(path)
             if normpath != norminfile or not skipOriginalMorph:
                 name = os.path.basename(normpath)
@@ -1276,4 +1278,4 @@ if __name__ == "__main__":
         convert_ascii(infile, morphfiles, outfile)
     elif TYPE == "binary":
         convert_binary(infile, outfile)
-    
+