From d86adfa4f1eccd717ba86e9b93ad5f8e508ef2d6 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Fri, 27 Sep 2013 15:33:54 +0000 Subject: [PATCH] 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 --- .../jme3/scene/plugins/blender/materials/MaterialContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java b/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java index 52bc4e840..986deb1f0 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/materials/MaterialContext.java +++ b/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); } }