katachi-runtime 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1759,12 +1759,16 @@ class Stage {
|
|
|
1759
1759
|
assets.clear();
|
|
1760
1760
|
}
|
|
1761
1761
|
const subject = await assets.load(name, props);
|
|
1762
|
+
if (showing === this.showing) {
|
|
1763
|
+
await Promise.all([this.renderer.compileAsync(subject.root, this.camera, this.scene), this.renderer.compileAsync(this.scene, this.camera)]);
|
|
1764
|
+
}
|
|
1762
1765
|
if (showing !== this.showing) {
|
|
1763
1766
|
subject.dispose();
|
|
1764
1767
|
return;
|
|
1765
1768
|
}
|
|
1766
1769
|
this.subject = subject;
|
|
1767
1770
|
this.frame(subject);
|
|
1771
|
+
this.renderer.render(this.scene, this.camera);
|
|
1768
1772
|
return subject;
|
|
1769
1773
|
}
|
|
1770
1774
|
dispose() {
|