@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.
- package/dist/main.js +1 -24
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1 -24
- package/dist/module.js +1 -24
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
@@ -23164,24 +23159,6 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
23164
23159
|
console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
|
|
23165
23160
|
}
|
|
23166
23161
|
}
|
|
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
|
-
}
|
|
23183
|
-
}
|
|
23184
|
-
}
|
|
23185
23162
|
};
|
|
23186
23163
|
_proto._saveAnimatorEventHandlers = function _saveAnimatorEventHandlers(state, animatorStateData) {
|
|
23187
23164
|
var eventHandlerPool = this._animationEventHandlerPool;
|