aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-effects
diff options
context:
space:
mode:
authorrenanse <[email protected]>2013-01-20 00:55:59 -0600
committerrenanse <[email protected]>2013-01-20 00:55:59 -0600
commitdc29c24ed025144452bade21fbe45ab609c6b854 (patch)
tree17c25ed7d8f1ecdd9b4b3039b89b4027e7cbc435 /ardor3d-effects
parent320a96585bf049a17863abfb8ee61fb3f7b8c9e7 (diff)
Dropped uses of getIndexBuffer
Diffstat (limited to 'ardor3d-effects')
-rw-r--r--ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleMesh.java2
-rw-r--r--ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleSystem.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleMesh.java b/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleMesh.java
index c700471..2d70080 100644
--- a/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleMesh.java
+++ b/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleMesh.java
@@ -126,7 +126,7 @@ public class ParticleMesh extends ParticleSystem {
if (_particleType == ParticleSystem.ParticleType.GeomMesh && _useMeshTexCoords) {
final MeshEmitter source = (MeshEmitter) getParticleEmitter();
final Mesh sourceMesh = source.getSource();
- final int index = sourceMesh.getMeshData().getIndexBuffer() != null ? sourceMesh.getMeshData()
+ final int index = sourceMesh.getMeshData().getIndices() != null ? sourceMesh.getMeshData()
.getIndices().get(ind) : ind;
BufferUtils.populateFromBuffer(temp, sourceMesh.getMeshData().getTextureCoords(0).getBuffer(),
index);
diff --git a/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleSystem.java b/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleSystem.java
index aa41a49..493e0f4 100644
--- a/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleSystem.java
+++ b/ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/ParticleSystem.java
@@ -659,8 +659,8 @@ public abstract class ParticleSystem extends Node {
vertices[x] = new Vector3();
final int vertIndex = mData.getVertexIndex(index, x, 0);
- BufferUtils.populateFromBuffer(vertices[x], mData.getVertexBuffer(),
- mData.getIndexBuffer() != null ? mData.getIndices().get(vertIndex) : vertIndex);
+ BufferUtils.populateFromBuffer(vertices[x], mData.getVertexBuffer(), mData.getIndices() != null ? mData
+ .getIndices().get(vertIndex) : vertIndex);
}
Triangle t = p.getTriangleModel();
if (t == null) {