From b0b818dc12b56010015a6a38ec2403d37f56529f Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 31 Jan 2013 22:39:43 +0000 Subject: [PATCH] - fix logging in blender loader git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/scene/plugins/blender/textures/ImageLoader.java | 6 +++--- .../jme3/scene/plugins/blender/textures/TextureHelper.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java index 4742fe225..8be0a954c 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/textures/ImageLoader.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: diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java index 2a5473d71..693e95e2b 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java @@ -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());