|
|
@ -59,6 +59,7 @@ public final class ModelImporterVisualPanel3 extends JPanel { |
|
|
|
mainKey = (AssetKey) wiz.getProperty("mainkey"); |
|
|
|
mainKey = (AssetKey) wiz.getProperty("mainkey"); |
|
|
|
data = (AssetData) wiz.getProperty("assetdata"); |
|
|
|
data = (AssetData) wiz.getProperty("assetdata"); |
|
|
|
loadModel(); |
|
|
|
loadModel(); |
|
|
|
|
|
|
|
offPanel.detachAll(); |
|
|
|
if (currentModel != null) { |
|
|
|
if (currentModel != null) { |
|
|
|
logger.log(Level.INFO, "Attaching model {0}", currentModel); |
|
|
|
logger.log(Level.INFO, "Attaching model {0}", currentModel); |
|
|
|
offPanel.attach(currentModel); |
|
|
|
offPanel.attach(currentModel); |
|
|
@ -73,10 +74,7 @@ public final class ModelImporterVisualPanel3 extends JPanel { |
|
|
|
wiz.putProperty("assetlist", assetKeys); |
|
|
|
wiz.putProperty("assetlist", assetKeys); |
|
|
|
wiz.putProperty("failedlist", failedKeys); |
|
|
|
wiz.putProperty("failedlist", failedKeys); |
|
|
|
wiz.putProperty("model", currentModel); |
|
|
|
wiz.putProperty("model", currentModel); |
|
|
|
if (currentModel != null) { |
|
|
|
offPanel.detachAll(); |
|
|
|
logger.log(Level.INFO, "Detaching model {0}", currentModel); |
|
|
|
|
|
|
|
offPanel.detach(currentModel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
logger.log(Level.INFO, "Stop offview panel"); |
|
|
|
logger.log(Level.INFO, "Stop offview panel"); |
|
|
|
offPanel.stopPreview(); |
|
|
|
offPanel.stopPreview(); |
|
|
|
} |
|
|
|
} |
|
|
|