From 5d4c27946760988fde6a903b17eb13a30b0729a3 Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Wed, 4 May 2011 15:41:58 +0000 Subject: [PATCH] * Removed argument check in Mesh.setBuffer() since now its done in VertexBuffer.setupData() git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7436 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/Mesh.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/engine/src/core/com/jme3/scene/Mesh.java b/engine/src/core/com/jme3/scene/Mesh.java index f4583973e..f2988cb5c 100644 --- a/engine/src/core/com/jme3/scene/Mesh.java +++ b/engine/src/core/com/jme3/scene/Mesh.java @@ -526,9 +526,6 @@ public class Mesh implements Savable, Cloneable { } public void setBuffer(Type type, int components, FloatBuffer buf) { - if (components < 1 || components > 4) - throw new IllegalArgumentException("components must be between 1 and 4"); - // VertexBuffer vb = buffers.get(type); VertexBuffer vb = buffers.get(type.ordinal()); if (vb == null){ @@ -550,9 +547,6 @@ public class Mesh implements Savable, Cloneable { } public void setBuffer(Type type, int components, IntBuffer buf) { - if (components < 1 || components > 4) - throw new IllegalArgumentException("components must be between 1 and 4"); - VertexBuffer vb = buffers.get(type.ordinal()); if (vb == null){ vb = new VertexBuffer(type); @@ -567,9 +561,6 @@ public class Mesh implements Savable, Cloneable { } public void setBuffer(Type type, int components, ShortBuffer buf) { - if (components < 1 || components > 4) - throw new IllegalArgumentException("components must be between 1 and 4"); - VertexBuffer vb = buffers.get(type.ordinal()); if (vb == null){ vb = new VertexBuffer(type); @@ -584,9 +575,6 @@ public class Mesh implements Savable, Cloneable { } public void setBuffer(Type type, int components, ByteBuffer buf) { - if (components < 1 || components > 4) - throw new IllegalArgumentException("components must be between 1 and 4"); - VertexBuffer vb = buffers.get(type.ordinal()); if (vb == null){ vb = new VertexBuffer(type);