- improve message to "Add to project" about usage

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7802 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-07-02 00:28:19 +00:00
parent d25bfd01a1
commit 82e46247e3

View File

@ -49,7 +49,7 @@ public final class AddToProjectAction implements Action {
Spatial model = AssetPackLoader.loadAssetPackModel(pm, conf);
if (model != null) {
ProjectAssetManager mgr = SceneApplication.getApplication().getCurrentSceneRequest().getManager();
if (mgr != null) {
if (mgr != null && mgr != pm) {
FileObject modelFolder = mgr.getAssetFolder().getFileObject("Models");
if (modelFolder == null) {
modelFolder = mgr.getAssetFolder().createFolder("Models");