@galacean/engine 0.0.0-experimental-0.9-plus.4 → 0.0.0-experimental-0.9-plus.5

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
@@ -17576,6 +17576,7 @@
17576
17576
  var mesh = this._mesh;
17577
17577
  if (mesh && !mesh.destroyed) {
17578
17578
  mesh._addRefCount(-1);
17579
+ mesh._updateFlagManager.removeListener(this._onMeshChanged);
17579
17580
  this._mesh = null;
17580
17581
  }
17581
17582
  };
@@ -17871,6 +17872,7 @@
17871
17872
  (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
17872
17873
  this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
17873
17874
  this._jointTexture.filterMode = exports.TextureFilterMode.Point;
17875
+ this._jointTexture.isGCIgnored = true;
17874
17876
  }
17875
17877
  shaderData.disableMacro("O3_JOINTS_NUM");
17876
17878
  shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
@@ -17904,6 +17906,15 @@
17904
17906
  };
17905
17907
  /**
17906
17908
  * @internal
17909
+ * @override
17910
+ */ _proto._onDestroy = function _onDestroy() {
17911
+ var _this_rootBone, _this__jointTexture;
17912
+ MeshRenderer.prototype._onDestroy.call(this);
17913
+ (_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
17914
+ (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
17915
+ };
17916
+ /**
17917
+ * @internal
17907
17918
  */ _proto._cloneTo = function _cloneTo(target) {
17908
17919
  MeshRenderer.prototype._cloneTo.call(this, target);
17909
17920
  this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
@@ -36108,7 +36119,7 @@
36108
36119
  ], OasisMaterialsRemap);
36109
36120
 
36110
36121
  //@ts-ignore
36111
- var version = "0.0.0-experimental-0.9-plus.4";
36122
+ var version = "0.0.0-experimental-0.9-plus.5";
36112
36123
  console.log("Galacean engine version: " + version);
36113
36124
  for(var key in CoreObjects){
36114
36125
  Loader.registerClass(key, CoreObjects[key]);