- apply some defaults to blender loader texture key when loading from file

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 450e40df32
commit cea09e02ed
  1. 5
      engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java

@ -734,7 +734,10 @@ public class TextureHelper extends AbstractBlenderHelper {
//now try to locate the asset
for(String assetName : assetNames) {
try {
result = assetManager.loadTexture(new TextureKey(assetName));
TextureKey key = new TextureKey(assetName);
key.setGenerateMips(true);
key.setAsCube(false);
result = assetManager.loadTexture(key);
break;//if no exception is thrown then accept the located asset and break the loop
} catch(AssetNotFoundException e) {
LOGGER.fine(e.getLocalizedMessage());

Loading…
Cancel
Save