@galacean/engine-core 0.0.0-experimental-0.9-plus.3 → 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.
@@ -12968,6 +12968,7 @@ var VertexChangedFlags;
12968
12968
  var mesh = this._mesh;
12969
12969
  if (mesh && !mesh.destroyed) {
12970
12970
  mesh._addRefCount(-1);
12971
+ mesh._updateFlagManager.removeListener(this._onMeshChanged);
12971
12972
  this._mesh = null;
12972
12973
  }
12973
12974
  };
@@ -13266,6 +13267,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
13266
13267
  (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
13267
13268
  this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
13268
13269
  this._jointTexture.filterMode = exports.TextureFilterMode.Point;
13270
+ this._jointTexture.isGCIgnored = true;
13269
13271
  }
13270
13272
  shaderData.disableMacro("O3_JOINTS_NUM");
13271
13273
  shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
@@ -13299,6 +13301,15 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
13299
13301
  };
13300
13302
  /**
13301
13303
  * @internal
13304
+ * @override
13305
+ */ _proto._onDestroy = function _onDestroy() {
13306
+ var _this_rootBone, _this__jointTexture;
13307
+ MeshRenderer.prototype._onDestroy.call(this);
13308
+ (_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
13309
+ (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
13310
+ };
13311
+ /**
13312
+ * @internal
13302
13313
  */ _proto._cloneTo = function _cloneTo(target) {
13303
13314
  MeshRenderer.prototype._cloneTo.call(this, target);
13304
13315
  this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
package/dist/module.js CHANGED
@@ -12963,6 +12963,7 @@ var VertexChangedFlags;
12963
12963
  var mesh = this._mesh;
12964
12964
  if (mesh && !mesh.destroyed) {
12965
12965
  mesh._addRefCount(-1);
12966
+ mesh._updateFlagManager.removeListener(this._onMeshChanged);
12966
12967
  this._mesh = null;
12967
12968
  }
12968
12969
  };
@@ -13261,6 +13262,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
13261
13262
  (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
13262
13263
  this._jointTexture = new Texture2D(engine, 4, jointCount, TextureFormat.R32G32B32A32, false);
13263
13264
  this._jointTexture.filterMode = TextureFilterMode.Point;
13265
+ this._jointTexture.isGCIgnored = true;
13264
13266
  }
13265
13267
  shaderData.disableMacro("O3_JOINTS_NUM");
13266
13268
  shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
@@ -13294,6 +13296,15 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
13294
13296
  };
13295
13297
  /**
13296
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
13297
13308
  */ _proto._cloneTo = function _cloneTo(target) {
13298
13309
  MeshRenderer.prototype._cloneTo.call(this, target);
13299
13310
  this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());