@galacean/engine-core 1.1.2 → 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 +15 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +15 -1
- package/dist/module.js +15 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/BasicResources.d.ts +0 -1
- package/types/Deprecated.d.ts +0 -101
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
- package/types/animation/AnimatorLayerMask.d.ts +0 -45
- package/types/animation/LayerPathMask.d.ts +0 -16
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
- package/types/enums/CameraType.d.ts +0 -1
- package/types/enums/Downsampling.d.ts +0 -11
- package/types/enums/MSAASamples.d.ts +0 -13
- package/types/texture/enums/PixelFormat.d.ts +0 -73
- package/types/xr/XRManager.d.ts +0 -5
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) {
|