@galacean/engine-core 0.9.17 → 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.
package/dist/main.js CHANGED
@@ -22979,7 +22979,7 @@ exports.AnimatorLayerBlendingMode = void 0;
22979
22979
  return;
22980
22980
  }
22981
22981
  if (!state.clip) {
22982
- console.warn("The state named " + stateName + " has no AnimationClip data.");
22982
+ Logger.warn("The state named " + stateName + " has no AnimationClip data.");
22983
22983
  return;
22984
22984
  }
22985
22985
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -23146,9 +23146,6 @@ exports.AnimatorLayerBlendingMode = void 0;
23146
23146
  //@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
23147
23147
  if (needRevert) {
23148
23148
  this._needRevertCurveOwners.push(owner);
23149
- } else {
23150
- var index = this._needRevertCurveOwners.indexOf(owner);
23151
- index > -1 && this._needRevertCurveOwners.splice(index, 1);
23152
23149
  }
23153
23150
  // Get layer owner
23154
23151
  var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
@@ -23156,7 +23153,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23156
23153
  curveLayerOwner[i] = layerOwner;
23157
23154
  } else {
23158
23155
  curveLayerOwner[i] = null;
23159
- console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23156
+ Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23160
23157
  }
23161
23158
  }
23162
23159
  };
@@ -23454,7 +23451,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23454
23451
  return;
23455
23452
  }
23456
23453
  if (!crossState.clip) {
23457
- console.warn("The state named " + name + " has no AnimationClip data.");
23454
+ Logger.warn("The state named " + name + " has no AnimationClip data.");
23458
23455
  return;
23459
23456
  }
23460
23457
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -23466,12 +23463,12 @@ exports.AnimatorLayerBlendingMode = void 0;
23466
23463
  destPlayData.reset(crossState, animatorStateData, offset);
23467
23464
  switch(layerState){
23468
23465
  case LayerState.Standby:
23466
+ case LayerState.Finished:
23469
23467
  animatorLayerData.layerState = LayerState.FixedCrossFading;
23470
23468
  this._clearCrossData(animatorLayerData);
23471
23469
  this._prepareStandbyCrossFading(animatorLayerData);
23472
23470
  break;
23473
23471
  case LayerState.Playing:
23474
- case LayerState.Finished:
23475
23472
  animatorLayerData.layerState = LayerState.CrossFading;
23476
23473
  this._clearCrossData(animatorLayerData);
23477
23474
  this._prepareCrossFading(animatorLayerData);