A little cleaning

This commit is contained in:
Thomas FORGIONE 2015-07-08 18:47:50 +02:00
parent 619d16c66b
commit 7024d54d02
2 changed files with 2 additions and 4 deletions

View File

@ -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;
});
}
});

View File

@ -159,6 +159,7 @@ L3D.BaseRecommendation.prototype.updateExtremity = function() {
this.mesh.geometry.computeFaceNormals();
this.mesh.geometry.verticesNeedUpdate = true;
this.mesh.geometry.normalsNeedUpdate = true;
};