fix re-shadow after index rotations, carry angle through synth points
This commit is contained in:
parent
3f3fccbd2a
commit
3452297dc6
5 changed files with 26 additions and 21 deletions
|
|
@ -667,7 +667,6 @@ class Widget {
|
|||
// if indexed, return points rotated about X and then offset
|
||||
let track = this.track;
|
||||
if (translate && track.indexed) {
|
||||
let delta = track.delta;
|
||||
pos = pos.clone()
|
||||
.applyMatrix4( new THREE.Matrix4().makeRotationX(-track.indexRad) );
|
||||
}
|
||||
|
|
@ -688,6 +687,9 @@ class Widget {
|
|||
} else if (translate) {
|
||||
pos = pos.slice();
|
||||
}
|
||||
// used by CAM.shadowAt()
|
||||
this.cache.geo = pos;
|
||||
this.cache.shadow = undefined;
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue