- change blender texture locator to always set the texture key on loaded textures explicitly (for relative textures too)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10378 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
21dc62e293
commit
ad927bcd6a
@ -722,7 +722,12 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
// Directly try to load texture so AssetManager can report missing textures
|
||||
try {
|
||||
TextureKey key = new TextureKey(absoluteName);
|
||||
assetManager.loadTexture(key);
|
||||
//TODO: gather from blender data
|
||||
key.setAsCube(false);
|
||||
key.setFlipY(true);
|
||||
key.setGenerateMips(true);
|
||||
result = assetManager.loadTexture(key);
|
||||
result.setKey(key);
|
||||
} catch (AssetNotFoundException e) {
|
||||
LOGGER.fine(e.getLocalizedMessage());
|
||||
}
|
||||
@ -748,8 +753,8 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
for (String assetName : assetNames) {
|
||||
try {
|
||||
TextureKey key = new TextureKey(assetName);
|
||||
//TODO: gather from blender data
|
||||
key.setAsCube(false);
|
||||
// TODO: gather from
|
||||
key.setFlipY(true);
|
||||
key.setGenerateMips(true);
|
||||
AssetInfo info = assetManager.locateAsset(key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user