lythreeframe 1.0.14 → 1.0.15

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.
@@ -1774,14 +1774,16 @@ class Orbital extends Pawn {
1774
1774
  if (onGoing) {
1775
1775
  onGoing();
1776
1776
  }
1777
- this.controller.viewPort.markRenderStateDirty();
1777
+ if (this.controller.viewPort)
1778
+ this.controller.viewPort.markRenderStateDirty();
1778
1779
  },
1779
1780
  onComplete: function () {
1780
1781
  //_this.enabled = true;
1781
1782
  if (onFinished) {
1782
1783
  onFinished();
1783
1784
  }
1784
- this.controller.viewPort.markRenderStateDirty();
1785
+ if (this.controller.viewPort)
1786
+ this.controller.viewPort.markRenderStateDirty();
1785
1787
  }
1786
1788
  });
1787
1789
  }
@@ -1772,14 +1772,16 @@ class Orbital extends Pawn {
1772
1772
  if (onGoing) {
1773
1773
  onGoing();
1774
1774
  }
1775
- this.controller.viewPort.markRenderStateDirty();
1775
+ if (this.controller.viewPort)
1776
+ this.controller.viewPort.markRenderStateDirty();
1776
1777
  },
1777
1778
  onComplete: function () {
1778
1779
  //_this.enabled = true;
1779
1780
  if (onFinished) {
1780
1781
  onFinished();
1781
1782
  }
1782
- this.controller.viewPort.markRenderStateDirty();
1783
+ if (this.controller.viewPort)
1784
+ this.controller.viewPort.markRenderStateDirty();
1783
1785
  }
1784
1786
  });
1785
1787
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",