From ac130c8ef6f27dbfa047888f4a049bac26ba747c Mon Sep 17 00:00:00 2001 From: mschuetz Date: Wed, 17 Dec 2014 18:02:19 +0100 Subject: [PATCH] fixed access to global var pointcloud from example --- src/PointCloudOctree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PointCloudOctree.js b/src/PointCloudOctree.js index 3b04e063..3100fcb3 100644 --- a/src/PointCloudOctree.js +++ b/src/PointCloudOctree.js @@ -111,7 +111,7 @@ Potree.PointCloudOctree.prototype.update = function(camera, renderer){ this.material.fov = camera.fov * (Math.PI / 180); this.material.screenWidth = renderer.domElement.clientWidth; this.material.screenHeight = renderer.domElement.clientHeight; - this.material.spacing = pointcloud.pcoGeometry.spacing; + this.material.spacing = this.pcoGeometry.spacing; this.material.near = camera.near; this.material.far = camera.far;