From b0aae847078e14e6d61a1352b099736c43d4ecbe Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Sun, 8 May 2011 17:10:13 +0000 Subject: [PATCH] * Fixed MTL loader bug when handling Tr/d statement git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java b/engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java index a7d9460ab..6c1a3c812 100644 --- a/engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java +++ b/engine/src/core-plugins/com/jme3/scene/plugins/MTLLoader.java @@ -132,7 +132,7 @@ public class MTLLoader implements AssetLoader { else color = new ColorRGBA(ColorRGBA.White); - color.a = scan.nextFloat(); + color.a = alpha; material.setColor("Diffuse", color); material.setTransparent(true); material.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);