- 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
This commit is contained in:
nor..67 2011-09-08 23:36:29 +00:00
parent 450e40df32
commit cea09e02ed

View File

@ -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());