diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java index 8e9e6a04a..c92693340 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java @@ -402,6 +402,15 @@ public class MeshHelper extends AbstractBlenderHelper { } } } + + // if there are multiple materials used, extract the shared + // vertex data + if (geometries.size() > 1){ + // extract from itself + for (Geometry geom : geometries){ + geom.getMesh().extractVertexData(geom.getMesh()); + } + } blenderContext.addLoadedFeatures(structure.getOldMemoryAddress(), structure.getName(), structure, geometries); blenderContext.setMeshContext(structure.getOldMemoryAddress(), meshContext);