ソースを参照

SDK:
- display warning if asset file is not inside asset folder

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

nor..67 11 年 前
コミット
b63d152f7d

+ 3 - 0
jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java

@@ -290,6 +290,9 @@ public class AssetDataObject extends MultiDataObject {
                 return null;
             }
             String assetKey = mgr.getRelativeAssetPath(getPrimaryFile().getPath());
+            if(assetKey != null && assetKey.equals(getPrimaryFile().getPath())){
+                DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("File is not in the assets folder!\nPut file in a place that can be\naccessed by the ProjectAssetManager."));
+            }
             this.assetKey = new AssetKey<Object>(assetKey);
         }
         return assetKey;