Skip to content

Commit

Permalink
fixed pre-rendering for element reuse (google#4046)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Jan 13, 2023
1 parent 212820c commit 5fcd9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/model-viewer/src/three-components/ModelScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export class ModelScene extends Scene {

reset() {
this.url = null;
this.renderCount = 0;
this.queueRender();
if (this.shadow != null) {
this.shadow.setIntensity(0);
Expand Down

0 comments on commit 5fcd9e3

Please sign in to comment.