- 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:
parent
450e40df32
commit
cea09e02ed
@ -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…
x
Reference in New Issue
Block a user