fixed finish tool bug; made profile setWidth() do updates automatically

This commit is contained in:
mschuetz 2015-03-07 08:57:14 +01:00
parent 5f721c3f31
commit cbcbd2518f

View File

@ -217,11 +217,15 @@ Potree.ProfileTool = function(scene, camera, renderer){
this.setWidth = function(width){
this.width = width;
this.update();
};
this.update = function(){
if(this.points.length === 1){
if(this.points.length === 0){
return;
}else if(this.points.length === 1){
var point = this.points[0];
this.spheres[0].position.copy(point);