- 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
|
// Directly try to load texture so AssetManager can report missing textures
|
||||||
try {
|
try {
|
||||||
TextureKey key = new TextureKey(absoluteName);
|
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) {
|
} catch (AssetNotFoundException e) {
|
||||||
LOGGER.fine(e.getLocalizedMessage());
|
LOGGER.fine(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
@ -748,8 +753,8 @@ public class TextureHelper extends AbstractBlenderHelper {
|
|||||||
for (String assetName : assetNames) {
|
for (String assetName : assetNames) {
|
||||||
try {
|
try {
|
||||||
TextureKey key = new TextureKey(assetName);
|
TextureKey key = new TextureKey(assetName);
|
||||||
|
//TODO: gather from blender data
|
||||||
key.setAsCube(false);
|
key.setAsCube(false);
|
||||||
// TODO: gather from
|
|
||||||
key.setFlipY(true);
|
key.setFlipY(true);
|
||||||
key.setGenerateMips(true);
|
key.setGenerateMips(true);
|
||||||
AssetInfo info = assetManager.locateAsset(key);
|
AssetInfo info = assetManager.locateAsset(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user