- make AssetKey not flatten relative paths

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10205 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 4d4801bb93
commit 437d34636b
  1. 3
      engine/src/core/com/jme3/asset/AssetKey.java

@ -152,9 +152,10 @@ public class AssetKey<T> implements Savable, Cloneable {
if (string.length() == 0 || string.equals(".")) {
//do nothing
} else if (string.equals("..")) {
if (list.size() > 0) {
if (list.size() > 0 && !list.getLast().equals("..")) {
list.removeLast();
} else {
list.add("..");
Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path is outside assetmanager root");
}
} else {

Loading…
Cancel
Save