From 19577c3288f08c00c11589cefb0fbbdfd7c0ba0f Mon Sep 17 00:00:00 2001 From: NemesisMate Date: Tue, 15 Dec 2015 19:13:12 +0000 Subject: [PATCH] Fixed a possible bug in TextureAtlas.java It seems that the variable was the wrong one when adding the normal texture to the atlas. --- jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java b/jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java index 48e809a63..98347067c 100644 --- a/jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java +++ b/jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java @@ -155,7 +155,7 @@ public class TextureAtlas { return false; } else { if (normal != null && normal.getKey() != null) { - addTexture(diffuse, "NormalMap", keyName); + addTexture(normal, "NormalMap", keyName); } if (specular != null && specular.getKey() != null) { addTexture(specular, "SpecularMap", keyName);