Skip to content

Commit

Permalink
Fixed wrong relative path, when it points to base dir, closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
metaphore committed Jan 14, 2017
1 parent 9a163a7 commit e5f417e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/assets/i18n/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ psTtWrapY = The wrap setting in the y direction for the texture.
psTtFormat = The format the texture will use in-memory.
psTtAlias = If checked, two images that are pixel for pixel the same will only be packed once.
psTtOutputFormat = The image type for output pages, "png" or "jpg".
psTtJpegQuality = The quality setting if outputFormat is "jpg".
psTtJpegQuality = The quality setting if output format is "jpg".
psTtIgnoreBlankImages = If checked, texture packer won't add regions for completely blank images.
psTtFast = If checked, the texture packer will not pack as efficiently but will execute much faster.
psTtDebug = If checked, lines are drawn on the output pages to show the packed image bounds.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static String relativize(String targetPath, String basePath) {
String normalizedTargetPath = FilenameUtils.normalizeNoEndSeparator(targetPath);
String normalizedBasePath = FilenameUtils.normalizeNoEndSeparator(basePath);

if (basePath.equals(targetPath)) return "";
if (basePath.equals(targetPath)) return ".";

// Undo the changes to the separators made by normalization
if (pathSeparator.equals("/")) {
Expand Down

0 comments on commit e5f417e

Please sign in to comment.