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
This commit is contained in:
parent
1d767981ee
commit
cd79395d9b
@ -44,9 +44,6 @@ import com.jme3.util.BufferUtils;
|
|||||||
* @param usesGeneratedTextures a variable that indicates if the model uses generated textures or not
|
* @param usesGeneratedTextures a variable that indicates if the model uses generated textures or not
|
||||||
*/
|
*/
|
||||||
public MeshBuilder(Vector3f[][] verticesAndNormals, List<byte[]> verticesColors, boolean usesGeneratedTextures) {
|
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.verticesAndNormals = verticesAndNormals;
|
||||||
this.verticesColors = verticesColors;
|
this.verticesColors = verticesColors;
|
||||||
this.usesGeneratedTextures = usesGeneratedTextures;
|
this.usesGeneratedTextures = usesGeneratedTextures;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user