- fix texture flip bug in MaterialExtensions
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7793 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
f41584e966
commit
8cbde935a4
@ -33,6 +33,7 @@
|
|||||||
package com.jme3.scene.plugins.ogre.matext;
|
package com.jme3.scene.plugins.ogre.matext;
|
||||||
|
|
||||||
import com.jme3.asset.AssetManager;
|
import com.jme3.asset.AssetManager;
|
||||||
|
import com.jme3.asset.TextureKey;
|
||||||
import com.jme3.material.Material;
|
import com.jme3.material.Material;
|
||||||
import com.jme3.material.MaterialList;
|
import com.jme3.material.MaterialList;
|
||||||
import com.jme3.scene.plugins.ogre.MaterialLoader;
|
import com.jme3.scene.plugins.ogre.MaterialLoader;
|
||||||
@ -73,7 +74,8 @@ public class MaterialExtensionLoader {
|
|||||||
|
|
||||||
String jmeParamName = matExt.getTextureMapping(aliasName);
|
String jmeParamName = matExt.getTextureMapping(aliasName);
|
||||||
|
|
||||||
Texture tex = assetManager.loadTexture(texturePath);
|
TextureKey key = new TextureKey(texturePath, false);
|
||||||
|
Texture tex = assetManager.loadTexture(key);
|
||||||
if (tex == null)
|
if (tex == null)
|
||||||
throw new IOException("Cannot load texture: " + texturePath);
|
throw new IOException("Cannot load texture: " + texturePath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user