- fix path issue in Model Import Tool

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10211 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 5e665b6804
commit 0a324bd288
  1. 1
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java
  2. 2
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/UberAssetLocator.java

@ -265,6 +265,7 @@ public final class ImportModel implements ActionListener {
AssetKey curKey = tex.getKey();
UberAssetInfo newInfo = UberAssetLocator.getInfo(curKey);
if (newInfo != null) {
logger.log(Level.INFO, "Create new key with name {0}", newInfo.getNewAssetName());
TextureKey newKey = new TextureKey(newInfo.getNewAssetName());
Beans.copyProperties(curKey, newKey);
Texture texture = mgr.loadTexture(newKey);

@ -99,7 +99,7 @@ public class UberAssetLocator implements AssetLocator {
String normalName = uberAssetInfo.getKey().getName();
if (assetBaseFolder != null) {
//sanitize filename by creating new asset key
String extendedName = new AssetKey(assetBaseFolder + "/" + normalName).getName();
String extendedName = new AssetKey(assetBaseFolder + normalName).getName();
logger.log(Level.INFO, "Looking for extended name {0}", extendedName);
if (extendedName.equals(key.getName())) {
logger.log(Level.INFO, "Found extended name {0}", extendedName);

Loading…
Cancel
Save