From 187d2f8fd2f359ae1239a622930198f9473102af Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Thu, 13 Aug 2015 08:50:23 -0400 Subject: [PATCH] Fixed reference to geometry in clone method of InstancedBufferGeometry --- src/core/InstancedBufferGeometry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/InstancedBufferGeometry.js b/src/core/InstancedBufferGeometry.js index 0d4290699e..0c58676819 100644 --- a/src/core/InstancedBufferGeometry.js +++ b/src/core/InstancedBufferGeometry.js @@ -32,14 +32,14 @@ THREE.InstancedBufferGeometry.prototype.copy = function ( source ) { for ( var attr in source.attributes ) { var sourceAttr = source.attributes[ attr ]; - geometry.addAttribute( attr, sourceAttr.clone() ); + this.addAttribute( attr, sourceAttr.clone() ); } for ( var i = 0, il = source.drawcalls.length; i < il; i ++ ) { var offset = source.drawcalls[ i ]; - geometry.addDrawCall( offset.start, offset.count, offset.index, offset.instances ); + this.addDrawCall( offset.start, offset.count, offset.index, offset.instances ); } -- GitLab