- fix logging in blender loader

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent ea973c14c3
commit b0b818dc12
  1. 6
      engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java
  2. 2
      engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java

@ -101,21 +101,21 @@ import java.util.logging.Logger;
try {
result = this.load(inputStream, flipY);
} catch (Exception e) {
logger.warning("Unable to load image using AWT loader!");
LOGGER.warning("Unable to load image using AWT loader!");
}
break;
case DDS:
try {
result = ddsLoader.load(inputStream);
} catch (Exception e) {
logger.warning("Unable to load image using DDS loader!");
LOGGER.warning("Unable to load image using DDS loader!");
}
break;
case TGA:
try {
result = TGALoader.load(inputStream, flipY);
} catch (Exception e) {
logger.warning("Unable to load image using TGA loader!");
LOGGER.warning("Unable to load image using TGA loader!");
}
break;
default:

@ -504,7 +504,7 @@ public class TextureHelper extends AbstractBlenderHelper {
LOGGER.log(Level.FINE, "Reading texture from file: {0}", texturePath);
result = this.loadImageFromFile(texturePath, blenderContext);
} else {
logger.fine("Packed texture. Reading directly from the blend file!");
LOGGER.fine("Packed texture. Reading directly from the blend file!");
Structure packedFile = pPackedFile.fetchData(blenderContext.getInputStream()).get(0);
Pointer pData = (Pointer) packedFile.getFieldValue("data");
FileBlockHeader dataFileBlock = blenderContext.getFileBlock(pData.getOldMemoryAddress());

Loading…
Cancel
Save