Sfoglia il codice sorgente

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
Kae..pl 13 anni fa
parent
commit
cd79395d9b

+ 0 - 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;