@galacean/engine-core 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.
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);
@@ -23128,9 +23128,6 @@ exports.AnimatorLayerBlendingMode = void 0;
23128
23128
  var _this = this, entity = _this.entity, curveOwnerPool = _this._curveOwnerPool;
23129
23129
  var curveLayerOwner = animatorStateData.curveLayerOwner;
23130
23130
  var _animatorState_clip = animatorState.clip, curves = _animatorState_clip._curveBindings;
23131
- if (layerIndex === 0) {
23132
- animatorLayerData.curveOwnerPool = Object.create(null);
23133
- }
23134
23131
  var layerCurveOwnerPool = animatorLayerData.curveOwnerPool;
23135
23132
  for(var i = curves.length - 1; i >= 0; i--){
23136
23133
  var curve = curves[i];
@@ -23140,9 +23137,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23140
23137
  var property = curve.property;
23141
23138
  var instanceId = targetEntity.instanceId;
23142
23139
  var needRevert = false;
23143
- var baseAnimatorLayerData = this._animatorLayersData[0];
23144
- var baseLayerCurveOwnerPool = baseAnimatorLayerData.curveOwnerPool;
23145
- if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0 && !(baseLayerCurveOwnerPool[instanceId] && baseLayerCurveOwnerPool[instanceId][property])) {
23140
+ if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0) {
23146
23141
  needRevert = true;
23147
23142
  }
23148
23143
  // Get owner
@@ -23151,9 +23146,6 @@ exports.AnimatorLayerBlendingMode = void 0;
23151
23146
  //@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
23152
23147
  if (needRevert) {
23153
23148
  this._needRevertCurveOwners.push(owner);
23154
- } else {
23155
- var index = this._needRevertCurveOwners.indexOf(owner);
23156
- index > -1 && this._needRevertCurveOwners.splice(index, 1);
23157
23149
  }
23158
23150
  // Get layer owner
23159
23151
  var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
@@ -23161,25 +23153,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23161
23153
  curveLayerOwner[i] = layerOwner;
23162
23154
  } else {
23163
23155
  curveLayerOwner[i] = null;
23164
- console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23165
- }
23166
- }
23167
- if (layerIndex === 0) {
23168
- this._needRevertCurveOwners.length = 0;
23169
- for(var i1 = 1, n = this._animatorLayersData.length; i1 < n; ++i1){
23170
- var layerData = this._animatorLayersData[i1];
23171
- var playingCurveOwnerPool = layerData.curveOwnerPool;
23172
- for(var instanceId1 in playingCurveOwnerPool){
23173
- for(var property1 in playingCurveOwnerPool[instanceId1]){
23174
- var layerOwner1 = playingCurveOwnerPool[instanceId1][property1];
23175
- if (this.animatorController.layers[i1].blendingMode === exports.AnimatorLayerBlendingMode.Additive) {
23176
- var baseLayerCurveOwnerPool1 = this._animatorLayersData[0].curveOwnerPool;
23177
- if (!(baseLayerCurveOwnerPool1[instanceId1] && baseLayerCurveOwnerPool1[instanceId1][property1])) {
23178
- this._needRevertCurveOwners.push(layerOwner1.curveOwner);
23179
- }
23180
- }
23181
- }
23182
- }
23156
+ Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23183
23157
  }
23184
23158
  }
23185
23159
  };
@@ -23477,7 +23451,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23477
23451
  return;
23478
23452
  }
23479
23453
  if (!crossState.clip) {
23480
- console.warn("The state named " + name + " has no AnimationClip data.");
23454
+ Logger.warn("The state named " + name + " has no AnimationClip data.");
23481
23455
  return;
23482
23456
  }
23483
23457
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -23489,12 +23463,12 @@ exports.AnimatorLayerBlendingMode = void 0;
23489
23463
  destPlayData.reset(crossState, animatorStateData, offset);
23490
23464
  switch(layerState){
23491
23465
  case LayerState.Standby:
23466
+ case LayerState.Finished:
23492
23467
  animatorLayerData.layerState = LayerState.FixedCrossFading;
23493
23468
  this._clearCrossData(animatorLayerData);
23494
23469
  this._prepareStandbyCrossFading(animatorLayerData);
23495
23470
  break;
23496
23471
  case LayerState.Playing:
23497
- case LayerState.Finished:
23498
23472
  animatorLayerData.layerState = LayerState.CrossFading;
23499
23473
  this._clearCrossData(animatorLayerData);
23500
23474
  this._prepareCrossFading(animatorLayerData);