@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 +5 -31
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +5 -31
- package/dist/module.js +5 -31
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/miniprogram.js
CHANGED
|
@@ -22980,7 +22980,7 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
22980
22980
|
return;
|
|
22981
22981
|
}
|
|
22982
22982
|
if (!state.clip) {
|
|
22983
|
-
|
|
22983
|
+
Logger.warn("The state named " + stateName + " has no AnimationClip data.");
|
|
22984
22984
|
return;
|
|
22985
22985
|
}
|
|
22986
22986
|
var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
|
|
@@ -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
|
-
|
|
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
|
|
@@ -23152,9 +23147,6 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
23152
23147
|
//@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
|
|
23153
23148
|
if (needRevert) {
|
|
23154
23149
|
this._needRevertCurveOwners.push(owner);
|
|
23155
|
-
} else {
|
|
23156
|
-
var index = this._needRevertCurveOwners.indexOf(owner);
|
|
23157
|
-
index > -1 && this._needRevertCurveOwners.splice(index, 1);
|
|
23158
23150
|
}
|
|
23159
23151
|
// Get layer owner
|
|
23160
23152
|
var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
|
|
@@ -23162,25 +23154,7 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
23162
23154
|
curveLayerOwner[i] = layerOwner;
|
|
23163
23155
|
} else {
|
|
23164
23156
|
curveLayerOwner[i] = null;
|
|
23165
|
-
|
|
23166
|
-
}
|
|
23167
|
-
}
|
|
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
|
-
}
|
|
23157
|
+
Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
|
|
23184
23158
|
}
|
|
23185
23159
|
}
|
|
23186
23160
|
};
|
|
@@ -23478,7 +23452,7 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
23478
23452
|
return;
|
|
23479
23453
|
}
|
|
23480
23454
|
if (!crossState.clip) {
|
|
23481
|
-
|
|
23455
|
+
Logger.warn("The state named " + name + " has no AnimationClip data.");
|
|
23482
23456
|
return;
|
|
23483
23457
|
}
|
|
23484
23458
|
var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
|
|
@@ -23490,12 +23464,12 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
23490
23464
|
destPlayData.reset(crossState, animatorStateData, offset);
|
|
23491
23465
|
switch(layerState){
|
|
23492
23466
|
case LayerState.Standby:
|
|
23467
|
+
case LayerState.Finished:
|
|
23493
23468
|
animatorLayerData.layerState = LayerState.FixedCrossFading;
|
|
23494
23469
|
this._clearCrossData(animatorLayerData);
|
|
23495
23470
|
this._prepareStandbyCrossFading(animatorLayerData);
|
|
23496
23471
|
break;
|
|
23497
23472
|
case LayerState.Playing:
|
|
23498
|
-
case LayerState.Finished:
|
|
23499
23473
|
animatorLayerData.layerState = LayerState.CrossFading;
|
|
23500
23474
|
this._clearCrossData(animatorLayerData);
|
|
23501
23475
|
this._prepareCrossFading(animatorLayerData);
|
package/dist/module.js
CHANGED
|
@@ -22975,7 +22975,7 @@ var AnimatorLayerBlendingMode;
|
|
|
22975
22975
|
return;
|
|
22976
22976
|
}
|
|
22977
22977
|
if (!state.clip) {
|
|
22978
|
-
|
|
22978
|
+
Logger.warn("The state named " + stateName + " has no AnimationClip data.");
|
|
22979
22979
|
return;
|
|
22980
22980
|
}
|
|
22981
22981
|
var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
|
|
@@ -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
|
-
|
|
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
|
|
@@ -23147,9 +23142,6 @@ var AnimatorLayerBlendingMode;
|
|
|
23147
23142
|
//@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
|
|
23148
23143
|
if (needRevert) {
|
|
23149
23144
|
this._needRevertCurveOwners.push(owner);
|
|
23150
|
-
} else {
|
|
23151
|
-
var index = this._needRevertCurveOwners.indexOf(owner);
|
|
23152
|
-
index > -1 && this._needRevertCurveOwners.splice(index, 1);
|
|
23153
23145
|
}
|
|
23154
23146
|
// Get layer owner
|
|
23155
23147
|
var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
|
|
@@ -23157,25 +23149,7 @@ var AnimatorLayerBlendingMode;
|
|
|
23157
23149
|
curveLayerOwner[i] = layerOwner;
|
|
23158
23150
|
} else {
|
|
23159
23151
|
curveLayerOwner[i] = null;
|
|
23160
|
-
|
|
23161
|
-
}
|
|
23162
|
-
}
|
|
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
|
-
}
|
|
23152
|
+
Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
|
|
23179
23153
|
}
|
|
23180
23154
|
}
|
|
23181
23155
|
};
|
|
@@ -23473,7 +23447,7 @@ var AnimatorLayerBlendingMode;
|
|
|
23473
23447
|
return;
|
|
23474
23448
|
}
|
|
23475
23449
|
if (!crossState.clip) {
|
|
23476
|
-
|
|
23450
|
+
Logger.warn("The state named " + name + " has no AnimationClip data.");
|
|
23477
23451
|
return;
|
|
23478
23452
|
}
|
|
23479
23453
|
var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
|
|
@@ -23485,12 +23459,12 @@ var AnimatorLayerBlendingMode;
|
|
|
23485
23459
|
destPlayData.reset(crossState, animatorStateData, offset);
|
|
23486
23460
|
switch(layerState){
|
|
23487
23461
|
case LayerState.Standby:
|
|
23462
|
+
case LayerState.Finished:
|
|
23488
23463
|
animatorLayerData.layerState = LayerState.FixedCrossFading;
|
|
23489
23464
|
this._clearCrossData(animatorLayerData);
|
|
23490
23465
|
this._prepareStandbyCrossFading(animatorLayerData);
|
|
23491
23466
|
break;
|
|
23492
23467
|
case LayerState.Playing:
|
|
23493
|
-
case LayerState.Finished:
|
|
23494
23468
|
animatorLayerData.layerState = LayerState.CrossFading;
|
|
23495
23469
|
this._clearCrossData(animatorLayerData);
|
|
23496
23470
|
this._prepareCrossFading(animatorLayerData);
|