@galacean/engine-core 1.4.2 → 1.4.4

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
@@ -3482,7 +3482,6 @@ exports.TiledSpriteAssembler = __decorate([
3482
3482
  this._bounds = null;
3483
3483
  this._atlas = null;
3484
3484
  this._texture = null;
3485
- this._updateFlagManager = null;
3486
3485
  };
3487
3486
  _proto._calDefaultSize = function _calDefaultSize() {
3488
3487
  if (this._texture) {
@@ -17657,8 +17656,8 @@ var ComponentCloner = /*#__PURE__*/ function() {
17657
17656
  }
17658
17657
  this._parent = null;
17659
17658
  this._siblingIndex = -1;
17659
+ this._dispatchModify(EntityModifyFlags.Child, oldParent);
17660
17660
  }
17661
- this._dispatchModify(EntityModifyFlags.Child, oldParent);
17662
17661
  };
17663
17662
  /**
17664
17663
  * @internal
@@ -17762,6 +17761,10 @@ var ComponentCloner = /*#__PURE__*/ function() {
17762
17761
  }
17763
17762
  }
17764
17763
  this._setParentChange();
17764
+ } else {
17765
+ if (parent && siblingIndex !== undefined) {
17766
+ this.siblingIndex = siblingIndex;
17767
+ }
17765
17768
  }
17766
17769
  };
17767
17770
  _proto._getComponentsInChildren = function _getComponentsInChildren(type, results) {