@galacean/engine-physics-lite 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.
@@ -10031,6 +10031,14 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
10031
10031
  };
10032
10032
  /**
10033
10033
  * @internal
10034
+ */ _proto._cloneTo = function _cloneTo(target) {
10035
+ var materials = this._materials;
10036
+ for(var i = 0, n = materials.length; i < n; i++){
10037
+ target._setMaterial(i, materials[i]);
10038
+ }
10039
+ };
10040
+ /**
10041
+ * @internal
10034
10042
  */ _proto._onDestroy = function _onDestroy() {
10035
10043
  this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
10036
10044
  this.shaderData._addRefCount(-1);
@@ -10209,7 +10217,7 @@ __decorate$1([
10209
10217
  ignoreClone
10210
10218
  ], exports.Renderer.prototype, "_overrideUpdate", void 0);
10211
10219
  __decorate$1([
10212
- shallowClone
10220
+ ignoreClone
10213
10221
  ], exports.Renderer.prototype, "_materials", void 0);
10214
10222
  __decorate$1([
10215
10223
  ignoreClone
@@ -10424,6 +10432,7 @@ SimpleSpriteAssembler = __decorate$1([
10424
10432
  /**
10425
10433
  * @internal
10426
10434
  */ _proto._cloneTo = function _cloneTo(target) {
10435
+ Renderer.prototype._cloneTo.call(this, target);
10427
10436
  target.sprite = this._sprite;
10428
10437
  };
10429
10438
  /**
@@ -12842,12 +12851,14 @@ var VertexChangedFlags;
12842
12851
  var mesh = this._mesh;
12843
12852
  if (mesh && !mesh.destroyed) {
12844
12853
  mesh._addRefCount(-1);
12854
+ mesh._updateFlagManager.removeListener(this._onMeshChanged);
12845
12855
  this._mesh = null;
12846
12856
  }
12847
12857
  };
12848
12858
  /**
12849
12859
  * @internal
12850
12860
  */ _proto._cloneTo = function _cloneTo(target) {
12861
+ Renderer.prototype._cloneTo.call(this, target);
12851
12862
  target.mesh = this._mesh;
12852
12863
  };
12853
12864
  /**
@@ -13137,6 +13148,7 @@ var rePropName = RegExp("[^.[\\]]+" + "|" + // Or match property names within br
13137
13148
  (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
13138
13149
  this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
13139
13150
  this._jointTexture.filterMode = exports.TextureFilterMode.Point;
13151
+ this._jointTexture.isGCIgnored = true;
13140
13152
  }
13141
13153
  shaderData.disableMacro("O3_JOINTS_NUM");
13142
13154
  shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
@@ -13170,6 +13182,15 @@ var rePropName = RegExp("[^.[\\]]+" + "|" + // Or match property names within br
13170
13182
  };
13171
13183
  /**
13172
13184
  * @internal
13185
+ * @override
13186
+ */ _proto._onDestroy = function _onDestroy() {
13187
+ var _this_rootBone, _this__jointTexture;
13188
+ MeshRenderer.prototype._onDestroy.call(this);
13189
+ (_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
13190
+ (_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
13191
+ };
13192
+ /**
13193
+ * @internal
13173
13194
  */ _proto._cloneTo = function _cloneTo(target) {
13174
13195
  MeshRenderer.prototype._cloneTo.call(this, target);
13175
13196
  this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
@@ -19721,6 +19742,7 @@ SlicedSpriteAssembler = __decorate$1([
19721
19742
  /**
19722
19743
  * @internal
19723
19744
  */ _proto._cloneTo = function _cloneTo(target) {
19745
+ Renderer.prototype._cloneTo.call(this, target);
19724
19746
  target.sprite = this._sprite;
19725
19747
  target.drawMode = this._drawMode;
19726
19748
  };
@@ -20470,6 +20492,7 @@ var /**
20470
20492
  /**
20471
20493
  * @internal
20472
20494
  */ _proto._cloneTo = function _cloneTo(target) {
20495
+ Renderer.prototype._cloneTo.call(this, target);
20473
20496
  target.font = this._font;
20474
20497
  target._subFont = this._subFont;
20475
20498
  };
@@ -35997,7 +36020,7 @@ function _interopNamespace(e) {
35997
36020
  }
35998
36021
  var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
35999
36022
  //@ts-ignore
36000
- var version = "0.0.0-experimental-0.9-plus.4";
36023
+ var version = "0.0.0-experimental-0.9-plus.6";
36001
36024
  console.log("Galacean engine version: " + version);
36002
36025
  for(var key in CoreObjects__namespace){
36003
36026
  CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);