Removing the exception throw when the mesh has no vertices. Now simply an empty geometry list will be returned.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 13 years ago
parent 1d767981ee
commit cd79395d9b
  1. 3
      engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java

@ -44,9 +44,6 @@ import com.jme3.util.BufferUtils;
* @param usesGeneratedTextures a variable that indicates if the model uses generated textures or not
*/
public MeshBuilder(Vector3f[][] verticesAndNormals, List<byte[]> verticesColors, boolean usesGeneratedTextures) {
if(verticesAndNormals == null || verticesAndNormals.length == 0) {
throw new IllegalArgumentException("No vertices loaded to build mesh.");
}
this.verticesAndNormals = verticesAndNormals;
this.verticesColors = verticesColors;
this.usesGeneratedTextures = usesGeneratedTextures;

Loading…
Cancel
Save