diff --git a/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java b/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java index f16353fd7..80e6eba3e 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java @@ -314,8 +314,9 @@ public class ProjectAssetManager extends DesktopAssetManager { /** * Collects files over the asset folder(s) and classpath + * * @param suffix - * @return + * @return */ private String[] collectFilesWithSuffix(String suffix) { ArrayList list = new ArrayList(); @@ -341,7 +342,9 @@ public class ProjectAssetManager extends DesktopAssetManager { while (jarEntry.hasMoreElements()) { FileObject jarEntryAsset = jarEntry.nextElement(); if (jarEntryAsset.getExt().equalsIgnoreCase(suffix)) { - list.add(jarEntryAsset.getPath()); + if (!jarEntryAsset.getPath().startsWith("/")) { + list.add(jarEntryAsset.getPath()); + } } }