From 3bd630fb19182010110d8898db0fe699cb2c511b Mon Sep 17 00:00:00 2001 From: Hohenheimsenberg Date: Fri, 1 May 2015 11:15:51 -0600 Subject: [PATCH] Fixed bug were sprite animations for other resolutions different than "orig", generated 4096x4096 texture packs. --- src/com/uwsoft/editor/controlles/ResolutionManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/uwsoft/editor/controlles/ResolutionManager.java b/src/com/uwsoft/editor/controlles/ResolutionManager.java index 1a2c7ba89..c3f2cf692 100644 --- a/src/com/uwsoft/editor/controlles/ResolutionManager.java +++ b/src/com/uwsoft/editor/controlles/ResolutionManager.java @@ -412,8 +412,10 @@ public void resizeImagesTmpDirToResolution(String packName, File sourceFolder, R TexturePacker.Settings settings = new TexturePacker.Settings(); settings.flattenPaths = true; - settings.maxHeight = getMinSquareNum(resolution.height); - settings.maxWidth = getMinSquareNum(resolution.height); +// settings.maxHeight = getMinSquareNum(resolution.height); +// settings.maxWidth = getMinSquareNum(resolution.height); + settings.maxHeight = Integer.parseInt(dataManager.getCurrentProjectVO().texturepackerHeight); + settings.maxWidth = Integer.parseInt(dataManager.getCurrentProjectVO().texturepackerWidth); settings.filterMag = Texture.TextureFilter.Linear; settings.filterMin = Texture.TextureFilter.Linear;