fix shadow for indexed parts
This commit is contained in:
parent
463fc48472
commit
4ba452d812
1 changed files with 7 additions and 0 deletions
|
|
@ -474,6 +474,7 @@ class Widget {
|
|||
let rad = deg * (Math.PI / 180);
|
||||
if (rad !== this.track.indexRad) {
|
||||
this.track.indexRad = rad;
|
||||
this.clearShadows();
|
||||
this.setModified();
|
||||
this._updateMeshPosition();
|
||||
}
|
||||
|
|
@ -840,6 +841,12 @@ class Widget {
|
|||
this.mesh.visible = false;
|
||||
}
|
||||
|
||||
clearShadows() {
|
||||
delete this.cache.shadow;
|
||||
delete this.cache.shadows;
|
||||
return this;
|
||||
}
|
||||
|
||||
async shadowAt(z) {
|
||||
let shadows = this.cache.shadows;
|
||||
if (!shadows) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue