From 23cc867e38784dda6774e252d86768412c94be33 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Thu, 3 Oct 2013 08:57:55 +0000 Subject: [PATCH] Bugfix: making the importer NOT to crash when coming accross OCEAN type of generated texture (this is a new texture type). git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10815 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/textures/TextureHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java index 5ec300e68..9197e9532 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/textures/TextureHelper.java @@ -97,6 +97,7 @@ public class TextureHelper extends AbstractBlenderHelper { public static final int TEX_DISTNOISE = 13; public static final int TEX_POINTDENSITY = 14; // v. 25+ public static final int TEX_VOXELDATA = 15; // v. 25+ + public static final int TEX_OCEAN = 16; // v. 26+ public static final Type[] TEXCOORD_TYPES = new Type[] { Type.TexCoord, Type.TexCoord2, Type.TexCoord3, Type.TexCoord4, Type.TexCoord5, Type.TexCoord6, Type.TexCoord7, Type.TexCoord8 }; @@ -167,6 +168,7 @@ public class TextureHelper extends AbstractBlenderHelper { case TEX_VOXELDATA: case TEX_PLUGIN: case TEX_ENVMAP: + case TEX_OCEAN: LOGGER.log(Level.WARNING, "Unsupported texture type: {0} for texture: {1}", new Object[] { type, tex.getName() }); break; default: