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