Merge pull request #110 from redheli/performance-octree-update

add break
This commit is contained in:
Markus Schütz 2015-01-16 22:09:34 +01:00
commit e7e5467703
2 changed files with 2 additions and 0 deletions

View File

@ -2338,6 +2338,7 @@ Potree.PointCloudOctree.prototype.update = function(camera, renderer){
for(var j = 0; j < this.visibleGeometry.length; j++){
if(this.visibleGeometry[j].node.name === child.name){
stack.push({node: child, weight: this.visibleGeometry[j].weight});
break;
}
};
}

View File

@ -171,6 +171,7 @@ Potree.PointCloudOctree.prototype.update = function(camera, renderer){
for(var j = 0; j < this.visibleGeometry.length; j++){
if(this.visibleGeometry[j].node.name === child.name){
stack.push({node: child, weight: this.visibleGeometry[j].weight});
break;
}
};
}