From ab8ddd5ab5be9763ca93aa75ad903083b733617e Mon Sep 17 00:00:00 2001 From: NemesisMate Date: Sat, 15 Jul 2017 10:39:56 +0100 Subject: [PATCH] Added missing var declaration. --- .../plugins/blender/textures/blending/TextureBlenderAWT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java index db4acc68f..1c6f2549d 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java +++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/blending/TextureBlenderAWT.java @@ -174,6 +174,8 @@ public class TextureBlenderAWT extends AbstractTextureBlender { // float blendFactor = this.blendFactor * (1f - ((1f - pixelColor[3]) * materialColor[3])); // float oneMinusFactor = 1f - blendFactor; + float col; + switch (blendType) { case MTEX_BLEND: result[0] = blendFactor * pixelColor[0] + oneMinusFactor * materialColor[0];