From ad927bcd6a83f32cc6c4c948202117678a50b0c5 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 9 Feb 2013 17:39:38 +0000 Subject: [PATCH] - change blender texture locator to always set the texture key on loaded textures explicitly (for relative textures too) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10378 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../scene/plugins/blender/textures/TextureHelper.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 8bc27e680..ae26c7d64 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 @@ -722,7 +722,12 @@ public class TextureHelper extends AbstractBlenderHelper { // Directly try to load texture so AssetManager can report missing textures try { TextureKey key = new TextureKey(absoluteName); - assetManager.loadTexture(key); + //TODO: gather from blender data + key.setAsCube(false); + key.setFlipY(true); + key.setGenerateMips(true); + result = assetManager.loadTexture(key); + result.setKey(key); } catch (AssetNotFoundException e) { LOGGER.fine(e.getLocalizedMessage()); } @@ -748,8 +753,8 @@ public class TextureHelper extends AbstractBlenderHelper { for (String assetName : assetNames) { try { TextureKey key = new TextureKey(assetName); + //TODO: gather from blender data key.setAsCube(false); - // TODO: gather from key.setFlipY(true); key.setGenerateMips(true); AssetInfo info = assetManager.locateAsset(key);