Having a pack file name without suffix prevents graphic to show
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
What steps will reproduce the problem?
1. open/create a project
2. change the "File name:" to "all"
3. click on "Pack selected"
What is the expected output? What do you see instead?
I expect to see the packed graphics on the right of the screen. Instead I see
nothing.
What version of the product are you using? On what operating system?
3.2.0; Linux
Please provide any additional information below.
If set the filename to "all.atlas" the graphic is displayed.
The suffix ".atlas" is added automatically if it does not exist upon image
creation. From com.badlogic.gdx.tools.imagepacker.TexturePackerFileProcessor:
if (packFileName.indexOf('.') == -1 || packFileName.endsWith(".png") || packFileName.endsWith(".jpg"))
packFileName += ".atlas";
This is not done upon loading: from aurelienribon.texturepackergui.Canvas.java:
public String getFilename() {return filename.equals("") ? getName() + ".pack" : filename;}
Original issue reported on code.google.com by KurtHu...@gmail.com
on 18 Nov 2013 at 10:06