2
0
Эх сурвалжийг харах

Merge pull request #392 from NemesisMate/patch-4

Fixed a possible bug in TextureAtlas.java
Kirill Vainer 9 жил өмнө
parent
commit
72423b682e

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