fix crash when rendering intensity in 2d elevation profile

This commit is contained in:
mschuetz 2016-01-06 14:45:54 +01:00
parent 2285d57d1c
commit 1731dfe228

View File

@ -379,7 +379,7 @@ Potree.Viewer.Profile = function(viewer, element){
return 'rgb(' + (d.color[0] * 100) + '%,' + (d.color[1] * 100) + '%,' + (d.color[2] * 100) + '%)';
} else if (material === Potree.PointColorType.INTENSITY) {
//return d.intensity;
return 'rgb(' + points.intensity + '%,' + points.intensity + '%,' + points.intensity + '%)';
return 'rgb(' + d.intensity + '%,' + d.intensity + '%,' + d.intensity + '%)';
} else if (material === Potree.PointColorType.CLASSIFICATION) {
var classif = scope.viewer.pointclouds[0].material.classification;
if (typeof classif[d.classification] != 'undefined'){