Browse Source

SDK:
- fix another path issue in Model Import Tool

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10212 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 12 years ago
parent
commit
9c89bbdc58

+ 3 - 1
jme3-model-importer/src/com/jme3/gde/modelimporter/UberAssetLocator.java

@@ -148,7 +148,7 @@ public class UberAssetLocator implements AssetLocator {
         //TODO: better attempt to actually find file.. :)
         //TODO: better attempt to actually find file.. :)
         String rootPath = this.rootPath != null ? this.rootPath.replace("\\", "/") : null;
         String rootPath = this.rootPath != null ? this.rootPath.replace("\\", "/") : null;
         if (rootPath != null) {
         if (rootPath != null) {
-            File file = new File(rootPath + "/" + key.getName());
+            File file = new File(rootPath + key.getName());
             file = FileUtil.normalizeFile(file);
             file = FileUtil.normalizeFile(file);
             FileObject fileObject = FileUtil.toFileObject(file);
             FileObject fileObject = FileUtil.toFileObject(file);
             if (fileObject != null) {
             if (fileObject != null) {
@@ -198,6 +198,8 @@ public class UberAssetLocator implements AssetLocator {
         if (file == null) {
         if (file == null) {
             return null;
             return null;
         }
         }
+        logger.log(Level.INFO, "Got user file input");
+        file = FileUtil.normalizeFile(file);
         return FileUtil.toFileObject(file);
         return FileUtil.toFileObject(file);
     }
     }