- 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:
parent
d25bfd01a1
commit
82e46247e3
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user