- fix logging in blender loader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
ea973c14c3
commit
b0b818dc12
@ -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…
x
Reference in New Issue
Block a user