From efe234a1868eaa49db87f494afcf7cffba851b26 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 15 Jul 2015 15:53:21 -0400 Subject: [PATCH] BufferGeometry: Fixed compiler warning. --- src/core/BufferGeometry.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/BufferGeometry.js b/src/core/BufferGeometry.js index d50b5aae1c..793b6cf2ae 100644 --- a/src/core/BufferGeometry.js +++ b/src/core/BufferGeometry.js @@ -918,10 +918,11 @@ THREE.BufferGeometry.prototype = { this.reorderBuffers( sortedIndices, revVertexMap, vertexPtr ); this.clearDrawCalls(); + for ( var i = 0; i < tmpOffsets.length; i ++ ) { - var offset = tmpOffsets[ i ]; - this.addDrawCall( offset.start, offset.count, offset.index ); + var tmpOffset = tmpOffsets[ i ]; + this.addDrawCall( tmpOffset.start, tmpOffset.count, tmpOffset.index ); } -- GitLab