Fix to setting the normal texture if vertex coloring is enabled.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7612 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 14 years ago
parent 2073f58cf8
commit 5dc1a29f6e
  1. 1280
      engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MaterialHelper.java
  2. 1059
      engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MeshHelper.java
  3. 3
      engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/TextureHelper.java

@ -217,7 +217,7 @@ public class TextureHelper extends AbstractBlenderHelper {
throw new BlenderFileException("Unknown texture type: " + type + " for texture: " + tex.getName());
}
if (result != null) {
result.setName(String.valueOf(type));
result.setName(tex.getName());
result.setWrap(WrapMode.Repeat);
}
return result;
@ -1579,7 +1579,6 @@ public class TextureHelper extends AbstractBlenderHelper {
}
}
if (result != null) {
result.setName(String.valueOf(8));// 8 = TEX_IMAGE
result.setWrap(Texture.WrapMode.Repeat);
dataRepository.addLoadedFeatures(image.getOldMemoryAddress(), image.getName(), image, result);
}

Loading…
Cancel
Save