add break

This commit is contained in:
Max 2015-01-16 09:58:10 +08:00
parent 48259ee5b2
commit 4cbc92dded
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;
}
};
}