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
experimental
Kae..pl 11 years ago
parent 2fc18e9e2c
commit d86adfa4f1
  1. 2
      engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java

@ -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…
Cancel
Save