@galacean/engine 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/browser.js CHANGED
@@ -14751,6 +14751,14 @@
14751
14751
  };
14752
14752
  /**
14753
14753
  * @internal
14754
+ */ _proto._cloneTo = function _cloneTo(target) {
14755
+ var materials = this._materials;
14756
+ for(var i = 0, n = materials.length; i < n; i++){
14757
+ target._setMaterial(i, materials[i]);
14758
+ }
14759
+ };
14760
+ /**
14761
+ * @internal
14754
14762
  */ _proto._onDestroy = function _onDestroy() {
14755
14763
  this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
14756
14764
  this.shaderData._addRefCount(-1);
@@ -14929,7 +14937,7 @@
14929
14937
  ignoreClone
14930
14938
  ], exports.Renderer.prototype, "_overrideUpdate", void 0);
14931
14939
  __decorate$1([
14932
- shallowClone
14940
+ ignoreClone
14933
14941
  ], exports.Renderer.prototype, "_materials", void 0);
14934
14942
  __decorate$1([
14935
14943
  ignoreClone
@@ -15144,6 +15152,7 @@
15144
15152
  /**
15145
15153
  * @internal
15146
15154
  */ _proto._cloneTo = function _cloneTo(target) {
15155
+ Renderer.prototype._cloneTo.call(this, target);
15147
15156
  target.sprite = this._sprite;
15148
15157
  };
15149
15158
  /**
@@ -17562,12 +17571,14 @@
17562
17571
  var mesh = this._mesh;
17563
17572
  if (mesh && !mesh.destroyed) {
17564
17573
  mesh._addRefCount(-1);
17574
+ mesh._updateFlagManager.removeListener(this._onMeshChanged);
17565
17575
  this._mesh = null;
17566
17576
  }
17567
17577
  };
17568
17578
  /**
17569
17579
  * @internal
17570
17580
  */ _proto._cloneTo = function _cloneTo(target) {
17581
+ Renderer.prototype._cloneTo.call(this, target);
17571
17582
  target.mesh = this._mesh;
17572
17583
  };
17573
17584
  /**
@@ -17857,6 +17868,7 @@
17857
17868
  (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
17858
17869
  this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
17859
17870
  this._jointTexture.filterMode = exports.TextureFilterMode.Point;
17871
+ this._jointTexture.isGCIgnored = true;
17860
17872
  }
17861
17873
  shaderData.disableMacro("O3_JOINTS_NUM");
17862
17874
  shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
@@ -17890,6 +17902,15 @@
17890
17902
  };
17891
17903
  /**
17892
17904
  * @internal
17905
+ * @override
17906
+ */ _proto._onDestroy = function _onDestroy() {
17907
+ var _this_rootBone, _this__jointTexture;
17908
+ MeshRenderer.prototype._onDestroy.call(this);
17909
+ (_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
17910
+ (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
17911
+ };
17912
+ /**
17913
+ * @internal
17893
17914
  */ _proto._cloneTo = function _cloneTo(target) {
17894
17915
  MeshRenderer.prototype._cloneTo.call(this, target);
17895
17916
  this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
@@ -24426,6 +24447,7 @@
24426
24447
  /**
24427
24448
  * @internal
24428
24449
  */ _proto._cloneTo = function _cloneTo(target) {
24450
+ Renderer.prototype._cloneTo.call(this, target);
24429
24451
  target.sprite = this._sprite;
24430
24452
  target.drawMode = this._drawMode;
24431
24453
  };
@@ -25175,6 +25197,7 @@
25175
25197
  /**
25176
25198
  * @internal
25177
25199
  */ _proto._cloneTo = function _cloneTo(target) {
25200
+ Renderer.prototype._cloneTo.call(this, target);
25178
25201
  target.font = this._font;
25179
25202
  target._subFont = this._subFont;
25180
25203
  };
@@ -35987,7 +36010,7 @@
35987
36010
  }));
35988
36011
 
35989
36012
  //@ts-ignore
35990
- var version = "0.9.10";
36013
+ var version = "0.9.11";
35991
36014
  console.log("Galacean engine version: " + version);
35992
36015
  for(var key in CoreObjects){
35993
36016
  Loader.registerClass(key, CoreObjects[key]);