* Blender loader will now extract vertex data into separate vertex buffers for meshes that use multiple materials instead of sharing them

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9007 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 03fb684b10
commit 3d54ab3378
  1. 9
      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);

Loading…
Cancel
Save