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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. 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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katachi-runtime",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Show converted GTA V models in the browser with three.js.",
5
5
  "type": "module",
6
6
  "exports": {