Fixed a possible bug in TextureAtlas.java

It seems that the variable was the wrong one when adding the normal texture to the atlas.
experimental
NemesisMate 9 years ago
parent b006204c0f
commit 19577c3288
  1. 2
      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);

Loading…
Cancel
Save