- 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 { try {
result = this.load(inputStream, flipY); result = this.load(inputStream, flipY);
} catch (Exception e) { } catch (Exception e) {
logger.warning("Unable to load image using AWT loader!"); LOGGER.warning("Unable to load image using AWT loader!");
} }
break; break;
case DDS: case DDS:
try { try {
result = ddsLoader.load(inputStream); result = ddsLoader.load(inputStream);
} catch (Exception e) { } catch (Exception e) {
logger.warning("Unable to load image using DDS loader!"); LOGGER.warning("Unable to load image using DDS loader!");
} }
break; break;
case TGA: case TGA:
try { try {
result = TGALoader.load(inputStream, flipY); result = TGALoader.load(inputStream, flipY);
} catch (Exception e) { } catch (Exception e) {
logger.warning("Unable to load image using TGA loader!"); LOGGER.warning("Unable to load image using TGA loader!");
} }
break; break;
default: default:

@ -504,7 +504,7 @@ public class TextureHelper extends AbstractBlenderHelper {
LOGGER.log(Level.FINE, "Reading texture from file: {0}", texturePath); LOGGER.log(Level.FINE, "Reading texture from file: {0}", texturePath);
result = this.loadImageFromFile(texturePath, blenderContext); result = this.loadImageFromFile(texturePath, blenderContext);
} else { } 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); Structure packedFile = pPackedFile.fetchData(blenderContext.getInputStream()).get(0);
Pointer pData = (Pointer) packedFile.getFieldValue("data"); Pointer pData = (Pointer) packedFile.getFieldValue("data");
FileBlockHeader dataFileBlock = blenderContext.getFileBlock(pData.getOldMemoryAddress()); FileBlockHeader dataFileBlock = blenderContext.getFileBlock(pData.getOldMemoryAddress());

Loading…
Cancel
Save