fixed invalid global var access

This commit is contained in:
mschuetz 2015-01-21 16:36:58 +01:00
parent b70f943f2b
commit e5c0a73d53
3 changed files with 3 additions and 3 deletions

View File

@ -2796,7 +2796,7 @@ Potree.PointCloudOctree.prototype.getPointsInProfile = function(profile, maxDept
for(var i = 0; i < profile.points.length - 1; i++){
var start = profile.points[i];
var end = profile.points[i+1];
var ps = pointcloud.getProfile(start, end, profile.width, maxDepth);
var ps = this.getProfile(start, end, profile.width, maxDepth);
for(var j = 0; j < ps.length; j++){
points.push(ps[j]);
}

File diff suppressed because one or more lines are too long

View File

@ -629,7 +629,7 @@ Potree.PointCloudOctree.prototype.getPointsInProfile = function(profile, maxDept
for(var i = 0; i < profile.points.length - 1; i++){
var start = profile.points[i];
var end = profile.points[i+1];
var ps = pointcloud.getProfile(start, end, profile.width, maxDepth);
var ps = this.getProfile(start, end, profile.width, maxDepth);
for(var j = 0; j < ps.length; j++){
points.push(ps[j]);
}