Quellcode durchsuchen

Fixed a possible bug in TextureAtlas.java

It seems that the variable was the wrong one when adding the normal texture to the atlas.
NemesisMate vor 10 Jahren
Ursprung
Commit
19577c3288
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java

+ 1 - 1
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);