diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MaterialHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MaterialHelper.java index a49493896..7d3095639 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MaterialHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/MaterialHelper.java @@ -252,10 +252,12 @@ public class MaterialHelper extends AbstractBlenderHelper { Structure tex = pTex.fetchData(dataRepository.getInputStream()).get(0); Texture texture = textureHelper.getTexture(tex, dataRepository); - // NOTE: Enable mipmaps FOR ALL TEXTURES EVER - texture.setMinFilter(MinFilter.Trilinear); + if (texture != null) { + // NOTE: Enable mipmaps FOR ALL TEXTURES EVER + texture.setMinFilter(MinFilter.Trilinear); + if ((mapto & 0x01) != 0) {// Col // Map to COLOR channel or DIFFUSE // Set diffuse to white so it doesn't get multiplied by texture diff --git a/engine/src/test/jme3test/model/anim/TestCustomAnim.java b/engine/src/test/jme3test/model/anim/TestCustomAnim.java index e3f0a4209..80a35ed98 100644 --- a/engine/src/test/jme3test/model/anim/TestCustomAnim.java +++ b/engine/src/test/jme3test/model/anim/TestCustomAnim.java @@ -120,7 +120,7 @@ public class TestCustomAnim extends SimpleApplication { model.attachChild(geom); // Create skeleton control - SkeletonControl skeletonControl = new SkeletonControl(new Mesh[]{ box }, skeleton); + SkeletonControl skeletonControl = new SkeletonControl(skeleton); model.addControl(skeletonControl); rootNode.attachChild(model);