@galacean/engine 0.0.0-experimental-0.9-plus.4 → 0.0.0-experimental-0.9-plus.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/browser.js +25 -2
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -14765,6 +14765,14 @@
|
|
|
14765
14765
|
};
|
|
14766
14766
|
/**
|
|
14767
14767
|
* @internal
|
|
14768
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
14769
|
+
var materials = this._materials;
|
|
14770
|
+
for(var i = 0, n = materials.length; i < n; i++){
|
|
14771
|
+
target._setMaterial(i, materials[i]);
|
|
14772
|
+
}
|
|
14773
|
+
};
|
|
14774
|
+
/**
|
|
14775
|
+
* @internal
|
|
14768
14776
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
14769
14777
|
this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
14770
14778
|
this.shaderData._addRefCount(-1);
|
|
@@ -14943,7 +14951,7 @@
|
|
|
14943
14951
|
ignoreClone
|
|
14944
14952
|
], exports.Renderer.prototype, "_overrideUpdate", void 0);
|
|
14945
14953
|
__decorate$1([
|
|
14946
|
-
|
|
14954
|
+
ignoreClone
|
|
14947
14955
|
], exports.Renderer.prototype, "_materials", void 0);
|
|
14948
14956
|
__decorate$1([
|
|
14949
14957
|
ignoreClone
|
|
@@ -15158,6 +15166,7 @@
|
|
|
15158
15166
|
/**
|
|
15159
15167
|
* @internal
|
|
15160
15168
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
15169
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
15161
15170
|
target.sprite = this._sprite;
|
|
15162
15171
|
};
|
|
15163
15172
|
/**
|
|
@@ -17576,12 +17585,14 @@
|
|
|
17576
17585
|
var mesh = this._mesh;
|
|
17577
17586
|
if (mesh && !mesh.destroyed) {
|
|
17578
17587
|
mesh._addRefCount(-1);
|
|
17588
|
+
mesh._updateFlagManager.removeListener(this._onMeshChanged);
|
|
17579
17589
|
this._mesh = null;
|
|
17580
17590
|
}
|
|
17581
17591
|
};
|
|
17582
17592
|
/**
|
|
17583
17593
|
* @internal
|
|
17584
17594
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
17595
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
17585
17596
|
target.mesh = this._mesh;
|
|
17586
17597
|
};
|
|
17587
17598
|
/**
|
|
@@ -17871,6 +17882,7 @@
|
|
|
17871
17882
|
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
17872
17883
|
this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
|
|
17873
17884
|
this._jointTexture.filterMode = exports.TextureFilterMode.Point;
|
|
17885
|
+
this._jointTexture.isGCIgnored = true;
|
|
17874
17886
|
}
|
|
17875
17887
|
shaderData.disableMacro("O3_JOINTS_NUM");
|
|
17876
17888
|
shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
|
|
@@ -17904,6 +17916,15 @@
|
|
|
17904
17916
|
};
|
|
17905
17917
|
/**
|
|
17906
17918
|
* @internal
|
|
17919
|
+
* @override
|
|
17920
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
17921
|
+
var _this_rootBone, _this__jointTexture;
|
|
17922
|
+
MeshRenderer.prototype._onDestroy.call(this);
|
|
17923
|
+
(_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
17924
|
+
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
17925
|
+
};
|
|
17926
|
+
/**
|
|
17927
|
+
* @internal
|
|
17907
17928
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
17908
17929
|
MeshRenderer.prototype._cloneTo.call(this, target);
|
|
17909
17930
|
this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
|
|
@@ -24455,6 +24476,7 @@
|
|
|
24455
24476
|
/**
|
|
24456
24477
|
* @internal
|
|
24457
24478
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
24479
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
24458
24480
|
target.sprite = this._sprite;
|
|
24459
24481
|
target.drawMode = this._drawMode;
|
|
24460
24482
|
};
|
|
@@ -25204,6 +25226,7 @@
|
|
|
25204
25226
|
/**
|
|
25205
25227
|
* @internal
|
|
25206
25228
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
25229
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
25207
25230
|
target.font = this._font;
|
|
25208
25231
|
target._subFont = this._subFont;
|
|
25209
25232
|
};
|
|
@@ -36108,7 +36131,7 @@
|
|
|
36108
36131
|
], OasisMaterialsRemap);
|
|
36109
36132
|
|
|
36110
36133
|
//@ts-ignore
|
|
36111
|
-
var version = "0.0.0-experimental-0.9-plus.
|
|
36134
|
+
var version = "0.0.0-experimental-0.9-plus.6";
|
|
36112
36135
|
console.log("Galacean engine version: " + version);
|
|
36113
36136
|
for(var key in CoreObjects){
|
|
36114
36137
|
Loader.registerClass(key, CoreObjects[key]);
|