fix some classification handling

This commit is contained in:
mschuetz 2015-10-09 12:18:00 +02:00
parent e8eee563e1
commit 33dc7ae696
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,11 @@
Potree.ProfileRequest = function(){
this.queue = [];
};
Potree.PointCloudOctreeNode = function(){
this.children = {};
this.sceneNode = null;
@ -771,6 +777,7 @@ Potree.PointCloudOctree.prototype.pick = function(renderer, camera, ray, params)
this.pickMaterial.interpolate = this.material.interpolate;
this.pickMaterial.minSize = this.material.minSize;
this.pickMaterial.maxSize = this.material.maxSize;
this.pickMaterial.classification = this.material.classification;
this.updateMaterial(this.pickMaterial, nodes, camera, renderer);

View File

@ -374,11 +374,11 @@ Object.defineProperty(Potree.PointCloudMaterial.prototype, "classification", {
return this._classification;
},
set: function(value){
if(this._classification !== value){
//if(this._classification !== value){
this._classification = value;
this.classificationTexture = Potree.PointCloudMaterial.generateClassificationTexture(this._classification);
this.uniforms.classificationLUT.value = this.classificationTexture;
}
//}
}
});