@galacean/engine 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/browser.js CHANGED
@@ -27473,7 +27473,7 @@
27473
27473
  return;
27474
27474
  }
27475
27475
  if (!state.clip) {
27476
- console.warn("The state named " + stateName + " has no AnimationClip data.");
27476
+ Logger.warn("The state named " + stateName + " has no AnimationClip data.");
27477
27477
  return;
27478
27478
  }
27479
27479
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -27622,9 +27622,6 @@
27622
27622
  var _this = this, entity = _this.entity, curveOwnerPool = _this._curveOwnerPool;
27623
27623
  var curveLayerOwner = animatorStateData.curveLayerOwner;
27624
27624
  var _animatorState_clip = animatorState.clip, curves = _animatorState_clip._curveBindings;
27625
- if (layerIndex === 0) {
27626
- animatorLayerData.curveOwnerPool = Object.create(null);
27627
- }
27628
27625
  var layerCurveOwnerPool = animatorLayerData.curveOwnerPool;
27629
27626
  for(var i = curves.length - 1; i >= 0; i--){
27630
27627
  var curve = curves[i];
@@ -27634,9 +27631,7 @@
27634
27631
  var property = curve.property;
27635
27632
  var instanceId = targetEntity.instanceId;
27636
27633
  var needRevert = false;
27637
- var baseAnimatorLayerData = this._animatorLayersData[0];
27638
- var baseLayerCurveOwnerPool = baseAnimatorLayerData.curveOwnerPool;
27639
- if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0 && !(baseLayerCurveOwnerPool[instanceId] && baseLayerCurveOwnerPool[instanceId][property])) {
27634
+ if (this.animatorController.layers[layerIndex].blendingMode === exports.AnimatorLayerBlendingMode.Additive && layerIndex > 0) {
27640
27635
  needRevert = true;
27641
27636
  }
27642
27637
  // Get owner
@@ -27645,9 +27640,6 @@
27645
27640
  //@todo: There is performance waste here, which will be handled together with organizing AnimatorStateData later. The logic is changing from runtime to initialization.
27646
27641
  if (needRevert) {
27647
27642
  this._needRevertCurveOwners.push(owner);
27648
- } else {
27649
- var index = this._needRevertCurveOwners.indexOf(owner);
27650
- index > -1 && this._needRevertCurveOwners.splice(index, 1);
27651
27643
  }
27652
27644
  // Get layer owner
27653
27645
  var layerPropertyOwners = (_layerCurveOwnerPool = layerCurveOwnerPool)[_instanceId1 = instanceId] || (_layerCurveOwnerPool[_instanceId1] = Object.create(null));
@@ -27655,25 +27647,7 @@
27655
27647
  curveLayerOwner[i] = layerOwner;
27656
27648
  } else {
27657
27649
  curveLayerOwner[i] = null;
27658
- console.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
27659
- }
27660
- }
27661
- if (layerIndex === 0) {
27662
- this._needRevertCurveOwners.length = 0;
27663
- for(var i1 = 1, n = this._animatorLayersData.length; i1 < n; ++i1){
27664
- var layerData = this._animatorLayersData[i1];
27665
- var playingCurveOwnerPool = layerData.curveOwnerPool;
27666
- for(var instanceId1 in playingCurveOwnerPool){
27667
- for(var property1 in playingCurveOwnerPool[instanceId1]){
27668
- var layerOwner1 = playingCurveOwnerPool[instanceId1][property1];
27669
- if (this.animatorController.layers[i1].blendingMode === exports.AnimatorLayerBlendingMode.Additive) {
27670
- var baseLayerCurveOwnerPool1 = this._animatorLayersData[0].curveOwnerPool;
27671
- if (!(baseLayerCurveOwnerPool1[instanceId1] && baseLayerCurveOwnerPool1[instanceId1][property1])) {
27672
- this._needRevertCurveOwners.push(layerOwner1.curveOwner);
27673
- }
27674
- }
27675
- }
27676
- }
27650
+ Logger.warn("The entity don't have the child entity which path is " + curve.relativePath + ".");
27677
27651
  }
27678
27652
  }
27679
27653
  };
@@ -27971,7 +27945,7 @@
27971
27945
  return;
27972
27946
  }
27973
27947
  if (!crossState.clip) {
27974
- console.warn("The state named " + name + " has no AnimationClip data.");
27948
+ Logger.warn("The state named " + name + " has no AnimationClip data.");
27975
27949
  return;
27976
27950
  }
27977
27951
  var animatorLayerData = this._getAnimatorLayerData(playLayerIndex);
@@ -27983,12 +27957,12 @@
27983
27957
  destPlayData.reset(crossState, animatorStateData, offset);
27984
27958
  switch(layerState){
27985
27959
  case LayerState.Standby:
27960
+ case LayerState.Finished:
27986
27961
  animatorLayerData.layerState = LayerState.FixedCrossFading;
27987
27962
  this._clearCrossData(animatorLayerData);
27988
27963
  this._prepareStandbyCrossFading(animatorLayerData);
27989
27964
  break;
27990
27965
  case LayerState.Playing:
27991
- case LayerState.Finished:
27992
27966
  animatorLayerData.layerState = LayerState.CrossFading;
27993
27967
  this._clearCrossData(animatorLayerData);
27994
27968
  this._prepareCrossFading(animatorLayerData);
@@ -36412,7 +36386,7 @@
36412
36386
  }));
36413
36387
 
36414
36388
  //@ts-ignore
36415
- var version = "0.9.16";
36389
+ var version = "0.9.18";
36416
36390
  console.log("Galacean engine version: " + version);
36417
36391
  for(var key in CoreObjects){
36418
36392
  Loader.registerClass(key, CoreObjects[key]);