@galacean/engine-core 1.4.0-beta.0 → 1.4.0-beta.2

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
@@ -30135,11 +30135,7 @@ function _type_of(obj) {
30135
30135
  if (transition.mute) continue;
30136
30136
  if (transitionCollection.isSoloMode && !transition.solo) continue;
30137
30137
  if (this._checkConditions(transition)) {
30138
- if (this._applyTransition(layerData, transition, aniUpdate)) {
30139
- return transition;
30140
- } else {
30141
- return null;
30142
- }
30138
+ return this._applyTransition(layerData, transition, aniUpdate);
30143
30139
  }
30144
30140
  }
30145
30141
  };
@@ -30159,13 +30155,11 @@ function _type_of(obj) {
30159
30155
  return true;
30160
30156
  };
30161
30157
  _proto._applyTransition = function _applyTransition(layerData, transition, aniUpdate) {
30162
- // Need prepare first, it should crossFade when to exit
30163
- var success = this._prepareCrossFadeByTransition(transition, layerData.layerIndex);
30164
30158
  if (transition.isExit) {
30165
30159
  this._checkAnyAndEntryState(layerData, 0, aniUpdate);
30166
- return transition;
30160
+ return null;
30167
30161
  }
30168
- return success ? transition : null;
30162
+ return this._prepareCrossFadeByTransition(transition, layerData.layerIndex) ? transition : null;
30169
30163
  };
30170
30164
  _proto._checkConditions = function _checkConditions(transition) {
30171
30165
  var conditions = transition.conditions;