瀏覽代碼

Removed yet another "position = " case.

Mr.doob 11 年之前
父節點
當前提交
39069ce50f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/canvas_interactive_cubes.html

+ 1 - 1
examples/canvas_interactive_cubes.html

@@ -131,7 +131,7 @@
 					intersects[ 0 ].object.material.color.setHex( Math.random() * 0xffffff );
 
 					var particle = new THREE.Sprite( particleMaterial );
-					particle.position = intersects[ 0 ].point;
+					particle.position.copy( intersects[ 0 ].point );
 					particle.scale.x = particle.scale.y = 16;
 					scene.add( particle );