@galacean/engine-physics-physx 0.9.16 → 0.9.18

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.
@@ -22732,7 +22732,7 @@ exports.AnimatorLayerBlendingMode = void 0;
22732
22732
  return;
22733
22733
  }
22734
22734
  if (!state.clip) {
22735
- console.warn("The state named " + stateName + " has no AnimationClip data.");
22735
+ Logger.warn("The state named " + stateName + " has no AnimationClip data.");
22736
22736
  return;
22737
22737
  }
22738
22738
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -22881,9 +22881,6 @@ exports.AnimatorLayerBlendingMode = void 0;
22881
22881
  var _this = this, entity = _this.entity, curveOwnerPool = _this._curveOwnerPool;
22882
22882
  var curveLayerOwner = animatorStateData.curveLayerOwner;
22883
22883
  var _animatorState_clip = animatorState.clip, curves = _animatorState_clip._curveBindings;
22884
- if (layerIndex === 0) {
22885
- animatorLayerData.curveOwnerPool = Object.create(null);
22886
- }
22887
22884
  var layerCurveOwnerPool = animatorLayerData.curveOwnerPool;
22888
22885
  for(var i = curves.length - 1; i >= 0; i--){
22889
22886
  var curve = curves[i];
@@ -22893,9 +22890,7 @@ exports.AnimatorLayerBlendingMode = void 0;
22893
22890
  var property = curve.property;
22894
22891
  var instanceId = targetEntity.instanceId;
22895
22892
  var needRevert = false;
22896
- var baseAnimatorLayerData = this._animatorLayersData[0];
22897
- var baseLayerCurveOwnerPool = baseAnimatorLayerData.curveOwnerPool;
22898
- if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0 && !(baseLayerCurveOwnerPool[instanceId] && baseLayerCurveOwnerPool[instanceId][property])) {
22893
+ if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0) {
22899
22894
  needRevert = true;
22900
22895
  }
22901
22896
  // Get owner
@@ -22904,9 +22899,6 @@ exports.AnimatorLayerBlendingMode = void 0;
22904
22899
  //@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
22905
22900
  if (needRevert) {
22906
22901
  this._needRevertCurveOwners.push(owner);
22907
- } else {
22908
- var index = this._needRevertCurveOwners.indexOf(owner);
22909
- index > -1 && this._needRevertCurveOwners.splice(index, 1);
22910
22902
  }
22911
22903
  // Get layer owner
22912
22904
  var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
@@ -22914,25 +22906,7 @@ exports.AnimatorLayerBlendingMode = void 0;
22914
22906
  curveLayerOwner[i] = layerOwner;
22915
22907
  } else {
22916
22908
  curveLayerOwner[i] = null;
22917
- console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
22918
- }
22919
- }
22920
- if (layerIndex === 0) {
22921
- this._needRevertCurveOwners.length = 0;
22922
- for(var i1 = 1, n = this._animatorLayersData.length; i1 < n; ++i1){
22923
- var layerData = this._animatorLayersData[i1];
22924
- var playingCurveOwnerPool = layerData.curveOwnerPool;
22925
- for(var instanceId1 in playingCurveOwnerPool){
22926
- for(var property1 in playingCurveOwnerPool[instanceId1]){
22927
- var layerOwner1 = playingCurveOwnerPool[instanceId1][property1];
22928
- if (this.animatorController.layers[i1].blendingMode === exports.AnimatorLayerBlendingMode.Additive) {
22929
- var baseLayerCurveOwnerPool1 = this._animatorLayersData[0].curveOwnerPool;
22930
- if (!(baseLayerCurveOwnerPool1[instanceId1] && baseLayerCurveOwnerPool1[instanceId1][property1])) {
22931
- this._needRevertCurveOwners.push(layerOwner1.curveOwner);
22932
- }
22933
- }
22934
- }
22935
- }
22909
+ Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
22936
22910
  }
22937
22911
  }
22938
22912
  };
@@ -23230,7 +23204,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23230
23204
  return;
23231
23205
  }
23232
23206
  if (!crossState.clip) {
23233
- console.warn("The state named " + name + " has no AnimationClip data.");
23207
+ Logger.warn("The state named " + name + " has no AnimationClip data.");
23234
23208
  return;
23235
23209
  }
23236
23210
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -23242,12 +23216,12 @@ exports.AnimatorLayerBlendingMode = void 0;
23242
23216
  destPlayData.reset(crossState, animatorStateData, offset);
23243
23217
  switch(layerState){
23244
23218
  case LayerState.Standby:
23219
+ case LayerState.Finished:
23245
23220
  animatorLayerData.layerState = LayerState.FixedCrossFading;
23246
23221
  this._clearCrossData(animatorLayerData);
23247
23222
  this._prepareStandbyCrossFading(animatorLayerData);
23248
23223
  break;
23249
23224
  case LayerState.Playing:
23250
- case LayerState.Finished:
23251
23225
  animatorLayerData.layerState = LayerState.CrossFading;
23252
23226
  this._clearCrossData(animatorLayerData);
23253
23227
  this._prepareCrossFading(animatorLayerData);
@@ -36279,7 +36253,7 @@ function _interopNamespace(e) {
36279
36253
  }
36280
36254
  var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
36281
36255
  //@ts-ignore
36282
- var version = "0.9.16";
36256
+ var version = "0.9.18";
36283
36257
  console.log("Galacean engine version: " + version);
36284
36258
  for(var key in CoreObjects__namespace){
36285
36259
  CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);