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:
@@ -158,7 +158,7 @@ public final class MaterialContext {
|
|||||||
boolean transparent = false;
|
boolean transparent = false;
|
||||||
if (diffuseColor != null) {
|
if (diffuseColor != null) {
|
||||||
transparent = diffuseColor.a < 1.0f;
|
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);
|
diffuseColor.set(1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user