fix exception when multi-segment profile request returns a segment without new points

This commit is contained in:
m-schuetz 2020-07-31 18:23:15 +02:00
parent f9d94d1840
commit 2c5f80aff4

View File

@ -711,6 +711,10 @@ export class ProfileWindow extends EventDispatcher {
addPoints (pointcloud, points) {
if(points.numPoints === 0){
return;
}
let entry = this.pointclouds.get(pointcloud);
if(!entry){
entry = new ProfileFakeOctree(pointcloud);