From c1ce9b0779f400b0cf320498c738a62433275da7 Mon Sep 17 00:00:00 2001 From: NemesisMate Date: Wed, 12 Nov 2014 22:29:21 +0100 Subject: [PATCH] Fixed "float2" added by some generators As commented in: http://hub.jmonkeyengine.org/forum/topic/unable-to-import-3ds-max-models/#post-285056 --- .../src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java index 5f2653281..c140da061 100644 --- a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java +++ b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java @@ -429,7 +429,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { int texCoords = parseInt(attribs.getValue("texture_coords"), 0); for (int i = 0; i < texCoords; i++) { - int dims = parseInt(attribs.getValue("texture_coord_dimensions_" + i), 2); + int dims = parseInt(attribs.getValue("texture_coord_dimensions_" + i).replaceAll("float2", "2"), 2); if (dims < 1 || dims > 4) { throw new SAXException("Texture coord dimensions must be 1 <= dims <= 4"); }