Bugfix: fixed an issue with missing material color when material has a non used texture.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10801 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2fc18e9e2c
commit
d86adfa4f1
@ -158,7 +158,7 @@ public final class MaterialContext {
|
||||
boolean transparent = false;
|
||||
if (diffuseColor != null) {
|
||||
transparent = diffuseColor.a < 1.0f;
|
||||
if (textureDataMap.size() > 0) {// texutre covers the material color
|
||||
if (loadedTextures.size() > 0) {// texutre covers the material color
|
||||
diffuseColor.set(1, 1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user