Normand Briere
2019-08-20 7dc9a8879ed29a7693d617afcb48014504ddc4a9
GroupEditor.java
....@@ -964,7 +964,7 @@
964964 texturecount = 0;
965965 }
966966
967
- if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
967
+ if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png")))
968968 {
969969 //if (!added)
970970 {
....@@ -973,7 +973,7 @@
973973 currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
974974 }
975975
976
- AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
976
+ AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
977977
978978 if (++colcount >= columns)
979979 {