Merge pull request #392 from NemesisMate/patch-4

Fixed a possible bug in TextureAtlas.java
This commit is contained in:
Kirill Vainer 2015-12-26 15:36:41 -05:00
commit 72423b682e

View File

@ -155,7 +155,7 @@ public class TextureAtlas {
return false; return false;
} else { } else {
if (normal != null && normal.getKey() != null) { if (normal != null && normal.getKey() != null) {
addTexture(diffuse, "NormalMap", keyName); addTexture(normal, "NormalMap", keyName);
} }
if (specular != null && specular.getKey() != null) { if (specular != null && specular.getKey() != null) {
addTexture(specular, "SpecularMap", keyName); addTexture(specular, "SpecularMap", keyName);