A little cleaning
This commit is contained in:
parent
619d16c66b
commit
7024d54d02
|
@ -137,13 +137,10 @@ function render() {
|
|||
objectClicker.update();
|
||||
|
||||
// Update recommendations (set raycastable if shown)
|
||||
var transform = buttonManager.showArrows ? show : hide;
|
||||
recommendations.map(function(reco) {
|
||||
if (reco instanceof Recommendation) {
|
||||
transform(reco);
|
||||
|
||||
reco.traverse(function(elt) {
|
||||
elt.raycastable = buttonManager.showArrows;
|
||||
elt.visible = elt.raycastable = buttonManager.showArrows;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -159,6 +159,7 @@ L3D.BaseRecommendation.prototype.updateExtremity = function() {
|
|||
|
||||
this.mesh.geometry.computeFaceNormals();
|
||||
this.mesh.geometry.verticesNeedUpdate = true;
|
||||
this.mesh.geometry.normalsNeedUpdate = true;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue