|
|
@ -77,7 +77,7 @@ public final class ModelImporterVisualPanel1 extends JPanel implements AssetEven |
|
|
|
currentModel = (Spatial) manager.loadAsset(mainKey); |
|
|
|
currentModel = (Spatial) manager.loadAsset(mainKey); |
|
|
|
if (currentModel != null) { |
|
|
|
if (currentModel != null) { |
|
|
|
offPanel.attach(currentModel); |
|
|
|
offPanel.attach(currentModel); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
Message msg = new NotifyDescriptor.Message( |
|
|
|
Message msg = new NotifyDescriptor.Message( |
|
|
|
"Cannot import this file!", |
|
|
|
"Cannot import this file!", |
|
|
|
NotifyDescriptor.ERROR_MESSAGE); |
|
|
|
NotifyDescriptor.ERROR_MESSAGE); |
|
|
@ -104,6 +104,7 @@ public final class ModelImporterVisualPanel1 extends JPanel implements AssetEven |
|
|
|
|
|
|
|
|
|
|
|
public void assetRequested(AssetKey ak) { |
|
|
|
public void assetRequested(AssetKey ak) { |
|
|
|
if (!"j3md".equalsIgnoreCase(ak.getExtension()) |
|
|
|
if (!"j3md".equalsIgnoreCase(ak.getExtension()) |
|
|
|
|
|
|
|
&& !"glsllib".equalsIgnoreCase(ak.getExtension()) |
|
|
|
&& !"frag".equalsIgnoreCase(ak.getExtension()) |
|
|
|
&& !"frag".equalsIgnoreCase(ak.getExtension()) |
|
|
|
&& !"vert".equalsIgnoreCase(ak.getExtension())) { |
|
|
|
&& !"vert".equalsIgnoreCase(ak.getExtension())) { |
|
|
|
requestedAssets.add(ak); |
|
|
|
requestedAssets.add(ak); |
|
|
|