@galacean/engine-core 0.9.10 → 0.9.11
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 +24 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +24 -1
- package/dist/module.js +24 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/sprite/SpriteMask.d.ts +2 -3
- package/types/2d/sprite/SpriteRenderer.d.ts +2 -3
- package/types/2d/text/TextRenderer.d.ts +2 -3
- package/types/Renderer.d.ts +2 -1
- package/types/mesh/MeshRenderer.d.ts +1 -2
package/dist/main.js
CHANGED
|
@@ -10117,6 +10117,14 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10117
10117
|
};
|
|
10118
10118
|
/**
|
|
10119
10119
|
* @internal
|
|
10120
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10121
|
+
var materials = this._materials;
|
|
10122
|
+
for(var i = 0, n = materials.length; i < n; i++){
|
|
10123
|
+
target._setMaterial(i, materials[i]);
|
|
10124
|
+
}
|
|
10125
|
+
};
|
|
10126
|
+
/**
|
|
10127
|
+
* @internal
|
|
10120
10128
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
10121
10129
|
this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
10122
10130
|
this.shaderData._addRefCount(-1);
|
|
@@ -10295,7 +10303,7 @@ __decorate([
|
|
|
10295
10303
|
ignoreClone
|
|
10296
10304
|
], exports.Renderer.prototype, "_overrideUpdate", void 0);
|
|
10297
10305
|
__decorate([
|
|
10298
|
-
|
|
10306
|
+
ignoreClone
|
|
10299
10307
|
], exports.Renderer.prototype, "_materials", void 0);
|
|
10300
10308
|
__decorate([
|
|
10301
10309
|
ignoreClone
|
|
@@ -10517,6 +10525,7 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10517
10525
|
/**
|
|
10518
10526
|
* @internal
|
|
10519
10527
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10528
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
10520
10529
|
target.sprite = this._sprite;
|
|
10521
10530
|
};
|
|
10522
10531
|
/**
|
|
@@ -12953,12 +12962,14 @@ var VertexChangedFlags;
|
|
|
12953
12962
|
var mesh = this._mesh;
|
|
12954
12963
|
if (mesh && !mesh.destroyed) {
|
|
12955
12964
|
mesh._addRefCount(-1);
|
|
12965
|
+
mesh._updateFlagManager.removeListener(this._onMeshChanged);
|
|
12956
12966
|
this._mesh = null;
|
|
12957
12967
|
}
|
|
12958
12968
|
};
|
|
12959
12969
|
/**
|
|
12960
12970
|
* @internal
|
|
12961
12971
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
12972
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
12962
12973
|
target.mesh = this._mesh;
|
|
12963
12974
|
};
|
|
12964
12975
|
/**
|
|
@@ -13251,6 +13262,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13251
13262
|
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13252
13263
|
this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
|
|
13253
13264
|
this._jointTexture.filterMode = exports.TextureFilterMode.Point;
|
|
13265
|
+
this._jointTexture.isGCIgnored = true;
|
|
13254
13266
|
}
|
|
13255
13267
|
shaderData.disableMacro("O3_JOINTS_NUM");
|
|
13256
13268
|
shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
|
|
@@ -13284,6 +13296,15 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13284
13296
|
};
|
|
13285
13297
|
/**
|
|
13286
13298
|
* @internal
|
|
13299
|
+
* @override
|
|
13300
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
13301
|
+
var _this_rootBone, _this__jointTexture;
|
|
13302
|
+
MeshRenderer.prototype._onDestroy.call(this);
|
|
13303
|
+
(_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
13304
|
+
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13305
|
+
};
|
|
13306
|
+
/**
|
|
13307
|
+
* @internal
|
|
13287
13308
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
13288
13309
|
MeshRenderer.prototype._cloneTo.call(this, target);
|
|
13289
13310
|
this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
|
|
@@ -19895,6 +19916,7 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19895
19916
|
/**
|
|
19896
19917
|
* @internal
|
|
19897
19918
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19919
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
19898
19920
|
target.sprite = this._sprite;
|
|
19899
19921
|
target.drawMode = this._drawMode;
|
|
19900
19922
|
};
|
|
@@ -20648,6 +20670,7 @@ var /**
|
|
|
20648
20670
|
/**
|
|
20649
20671
|
* @internal
|
|
20650
20672
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20673
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
20651
20674
|
target.font = this._font;
|
|
20652
20675
|
target._subFont = this._subFont;
|
|
20653
20676
|
};
|