@galacean/engine-core 0.9.16 → 0.9.17

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.
@@ -23129,9 +23129,6 @@ exports.AnimatorLayerBlendingMode = void 0;
23129
23129
  var _this = this, entity = _this.entity, curveOwnerPool = _this._curveOwnerPool;
23130
23130
  var curveLayerOwner = animatorStateData.curveLayerOwner;
23131
23131
  var _animatorState_clip = animatorState.clip, curves = _animatorState_clip._curveBindings;
23132
- if (layerIndex === 0) {
23133
- animatorLayerData.curveOwnerPool = Object.create(null);
23134
- }
23135
23132
  var layerCurveOwnerPool = animatorLayerData.curveOwnerPool;
23136
23133
  for(var i = curves.length - 1; i >= 0; i--){
23137
23134
  var curve = curves[i];
@@ -23141,9 +23138,7 @@ exports.AnimatorLayerBlendingMode = void 0;
23141
23138
  var property = curve.property;
23142
23139
  var instanceId = targetEntity.instanceId;
23143
23140
  var needRevert = false;
23144
- var baseAnimatorLayerData = this._animatorLayersData[0];
23145
- var baseLayerCurveOwnerPool = baseAnimatorLayerData.curveOwnerPool;
23146
- if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0 && !(baseLayerCurveOwnerPool[instanceId] && baseLayerCurveOwnerPool[instanceId][property])) {
23141
+ if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0) {
23147
23142
  needRevert = true;
23148
23143
  }
23149
23144
  // Get owner
@@ -23165,24 +23160,6 @@ exports.AnimatorLayerBlendingMode = void 0;
23165
23160
  console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23166
23161
  }
23167
23162
  }
23168
- if (layerIndex === 0) {
23169
- this._needRevertCurveOwners.length = 0;
23170
- for(var i1 = 1, n = this._animatorLayersData.length; i1 < n; ++i1){
23171
- var layerData = this._animatorLayersData[i1];
23172
- var playingCurveOwnerPool = layerData.curveOwnerPool;
23173
- for(var instanceId1 in playingCurveOwnerPool){
23174
- for(var property1 in playingCurveOwnerPool[instanceId1]){
23175
- var layerOwner1 = playingCurveOwnerPool[instanceId1][property1];
23176
- if (this.animatorController.layers[i1].blendingMode === exports.AnimatorLayerBlendingMode.Additive) {
23177
- var baseLayerCurveOwnerPool1 = this._animatorLayersData[0].curveOwnerPool;
23178
- if (!(baseLayerCurveOwnerPool1[instanceId1] && baseLayerCurveOwnerPool1[instanceId1][property1])) {
23179
- this._needRevertCurveOwners.push(layerOwner1.curveOwner);
23180
- }
23181
- }
23182
- }
23183
- }
23184
- }
23185
- }
23186
23163
  };
23187
23164
  _proto._saveAnimatorEventHandlers = function _saveAnimatorEventHandlers(state, animatorStateData) {
23188
23165
  var eventHandlerPool = this._animationEventHandlerPool;
package/dist/module.js CHANGED
@@ -23124,9 +23124,6 @@ var AnimatorLayerBlendingMode;
23124
23124
  var _this = this, entity = _this.entity, curveOwnerPool = _this._curveOwnerPool;
23125
23125
  var curveLayerOwner = animatorStateData.curveLayerOwner;
23126
23126
  var _animatorState_clip = animatorState.clip, curves = _animatorState_clip._curveBindings;
23127
- if (layerIndex === 0) {
23128
- animatorLayerData.curveOwnerPool = Object.create(null);
23129
- }
23130
23127
  var layerCurveOwnerPool = animatorLayerData.curveOwnerPool;
23131
23128
  for(var i = curves.length - 1; i >= 0; i--){
23132
23129
  var curve = curves[i];
@@ -23136,9 +23133,7 @@ var AnimatorLayerBlendingMode;
23136
23133
  var property = curve.property;
23137
23134
  var instanceId = targetEntity.instanceId;
23138
23135
  var needRevert = false;
23139
- var baseAnimatorLayerData = this._animatorLayersData[0];
23140
- var baseLayerCurveOwnerPool = baseAnimatorLayerData.curveOwnerPool;
23141
- if (this.animatorController.layers[layerIndex].blendingMode === AnimatorLayerBlendingMode.Additive && layerIndex > 0 && !(baseLayerCurveOwnerPool[instanceId] && baseLayerCurveOwnerPool[instanceId][property])) {
23136
+ if (this.animatorController.layers[layerIndex].blendingMode === AnimatorLayerBlendingMode.Additive && layerIndex > 0) {
23142
23137
  needRevert = true;
23143
23138
  }
23144
23139
  // Get owner
@@ -23160,24 +23155,6 @@ var AnimatorLayerBlendingMode;
23160
23155
  console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
23161
23156
  }
23162
23157
  }
23163
- if (layerIndex === 0) {
23164
- this._needRevertCurveOwners.length = 0;
23165
- for(var i1 = 1, n = this._animatorLayersData.length; i1 < n; ++i1){
23166
- var layerData = this._animatorLayersData[i1];
23167
- var playingCurveOwnerPool = layerData.curveOwnerPool;
23168
- for(var instanceId1 in playingCurveOwnerPool){
23169
- for(var property1 in playingCurveOwnerPool[instanceId1]){
23170
- var layerOwner1 = playingCurveOwnerPool[instanceId1][property1];
23171
- if (this.animatorController.layers[i1].blendingMode === AnimatorLayerBlendingMode.Additive) {
23172
- var baseLayerCurveOwnerPool1 = this._animatorLayersData[0].curveOwnerPool;
23173
- if (!(baseLayerCurveOwnerPool1[instanceId1] && baseLayerCurveOwnerPool1[instanceId1][property1])) {
23174
- this._needRevertCurveOwners.push(layerOwner1.curveOwner);
23175
- }
23176
- }
23177
- }
23178
- }
23179
- }
23180
- }
23181
23158
  };
23182
23159
  _proto._saveAnimatorEventHandlers = function _saveAnimatorEventHandlers(state, animatorStateData) {
23183
23160
  var eventHandlerPool = this._animationEventHandlerPool;