Merge pull request #629 from JavaSaBr/fix_problem_with_converting_blend_files

fixed a problem with converting blend file when there are unsupported…
fix-456
empirephoenix 8 years ago committed by GitHub
commit a64175c0f1
  1. 7
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/TextureHelper.java

@ -42,6 +42,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import com.jme3.asset.AssetInfo;
import com.jme3.asset.AssetLoadException;
import com.jme3.asset.AssetManager;
import com.jme3.asset.AssetNotFoundException;
import com.jme3.asset.BlenderKey;
@ -486,7 +487,7 @@ public class TextureHelper extends AbstractBlenderHelper {
key.setGenerateMips(generateMipmaps);
result = assetManager.loadTexture(key);
result.setKey(key);
} catch (AssetNotFoundException e) {
} catch (AssetNotFoundException | AssetLoadException e) {
LOGGER.fine(e.getLocalizedMessage());
}
} else {
@ -522,7 +523,7 @@ public class TextureHelper extends AbstractBlenderHelper {
// If texture is found return it;
return result;
}
} catch (AssetNotFoundException e) {
} catch (AssetNotFoundException | AssetLoadException e) {
LOGGER.fine(e.getLocalizedMessage());
}
}
@ -532,7 +533,7 @@ public class TextureHelper extends AbstractBlenderHelper {
try {
TextureKey key = new TextureKey(name);
assetManager.loadTexture(key);
} catch (AssetNotFoundException e) {
} catch (AssetNotFoundException | AssetLoadException e) {
LOGGER.fine(e.getLocalizedMessage());
}
}

Loading…
Cancel
Save