Преглед изворни кода

- fix texture flip bug in MaterialExtensions

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7793 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 пре 14 година
родитељ
комит
8cbde935a4

+ 3 - 1
engine/src/ogre/com/jme3/scene/plugins/ogre/matext/MaterialExtensionLoader.java

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