Commits

Ronny Pfannschmidt  committed ddea884

keep the order of the ImageTextures

  • Participants
  • Parent commits bd4c7f4

Comments (0)

Files changed (1)

     texts = app.findall('ImageTexture')
     if mat is None:
         return
-    for tex in texts:
+    for idx, tex in enumerate(texts):
         app.remove(tex)
-        app.insert(0, tex)
+        app.insert(idx, tex)
 
 
 def is_broken_tree(app):