- avoid duplicates in AssetDataObject asset list 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9469 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 3594e90e66
commit d54451f334
  1. 5
      sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java

@ -289,7 +289,7 @@ public class AssetDataObject extends MultiDataObject {
return;
}
FileObject obj = pm.getAssetFolder().getFileObject(ak.getName());
if (obj != null) {
if (obj != null && !assetList.contains(obj)) {
assetList.add(obj);
assetKeyList.add(ak);
}
@ -303,8 +303,9 @@ public class AssetDataObject extends MultiDataObject {
FileObject obj = pm.getAssetFolder().getFileObject(ak1.getName());
if (obj != null && assetList.contains(obj)) {
assetList.remove(obj);
failedList.add(ak1);
assetKeyList.remove(ak1);
}
failedList.add(ak1);
}
public void start() {

Loading…
Cancel
Save