@galacean/engine-core 1.1.3 → 1.1.6

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/dist/main.js CHANGED
@@ -19892,7 +19892,21 @@ ShaderPool.init();
19892
19892
  mesh.uploadData(false);
19893
19893
  };
19894
19894
  _proto._initMesh = function _initMesh(engine) {
19895
- this._mesh = this._createPlane(engine);
19895
+ var mesh = this._mesh = this._createPlane(engine);
19896
+ engine.resourceManager.addContentRestorer(new /*#__PURE__*/ (function(ContentRestorer) {
19897
+ _inherits(_class, ContentRestorer);
19898
+ function _class() {
19899
+ return ContentRestorer.call(this, mesh);
19900
+ }
19901
+ var _proto = _class.prototype;
19902
+ _proto.restoreContent = function restoreContent() {
19903
+ mesh.setPositions(mesh.getPositions());
19904
+ mesh.setUVs(mesh.getUVs());
19905
+ mesh.setIndices(mesh.getIndices());
19906
+ mesh.uploadData(false);
19907
+ };
19908
+ return _class;
19909
+ }(ContentRestorer))());
19896
19910
  this._mesh._addReferCount(1);
19897
19911
  };
19898
19912
  _proto._initMaterial = function _initMaterial(engine) {