Skip to content

Commit

Permalink
fix: drop broken import of stats
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdor committed May 2, 2022
1 parent 89bffc1 commit 5e15380
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Clip.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export default class Clip3D extends BrowserClip {
/*
Execute all light function callbacks
we need this to add target to lights.
Target entities should and must be initialized after
Target entities should and must be initialized after
initializing the lights
*/
this.lightCallbackFunctions.forEach((func) => func());
Expand All @@ -456,7 +456,7 @@ export default class Clip3D extends BrowserClip {
this.setCustomEntity(uuidv4(), render, ["renders"]);
});

/*
/*
store first camera, renderer and scene as default render combination
*/
this.defaultScene = this.getObject(
Expand Down Expand Up @@ -504,17 +504,16 @@ export default class Clip3D extends BrowserClip {
}
};

/*
check if the content is loaded
we need this call when no models
/*
check if the content is loaded
we need this call when no models
are loaded into the scene
*/
if (this.context.loading) this.checkLoadedContext();

/* STATS */
this.stats;
if (this.attributes.stats && !this.checkIfFragment()) {
import("three/examples/jsm/libs/stats.module").then((res) => {
import("three/examples/jsm/libs/stats.module.js").then((res) => {
this.stats = res.default();
this.context.window.document.body.appendChild(this.stats.dom);
});
Expand Down Expand Up @@ -592,7 +591,7 @@ export default class Clip3D extends BrowserClip {

renderLoop() {
/*
This code is only executed when postprocessing is set
This code is only executed when postprocessing is set
at clip attributes
*/

Expand Down

0 comments on commit 5e15380

Please sign in to comment.