- Add some more logging to ImportModel

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10221 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 3af23e94f2
commit ab8af25455
  1. 4
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java

@ -265,6 +265,7 @@ public final class ImportModel implements ActionListener {
AssetKey curKey = tex.getKey();
UberAssetInfo newInfo = UberAssetLocator.getInfo(curKey);
if (newInfo != null) {
if (newInfo.getNewAssetName() != null) {
logger.log(Level.INFO, "Create new key with name {0}", newInfo.getNewAssetName());
TextureKey newKey = new TextureKey(newInfo.getNewAssetName());
Beans.copyProperties(curKey, newKey);
@ -276,6 +277,9 @@ public final class ImportModel implements ActionListener {
} else {
logger.log(Level.WARNING, "Could not find relocated texture!");
}
} else {
logger.log(Level.SEVERE, "Don't have name for previously relocated asset {0}, something went wrong!", curKey);
}
}
} catch (Exception ex) {
Exceptions.printStackTrace(ex);

Loading…
Cancel
Save