@galacean/engine-core 1.3.1 → 1.3.3
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 +12 -9
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +12 -9
- package/dist/module.js +12 -9
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Entity.d.ts +0 -1
package/dist/main.js
CHANGED
|
@@ -17823,6 +17823,17 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17823
17823
|
this._setInActiveInHierarchy(this._activeChangedComponents, activeChangeFlag);
|
|
17824
17824
|
this._setActiveComponents(false, activeChangeFlag);
|
|
17825
17825
|
};
|
|
17826
|
+
/**
|
|
17827
|
+
* @internal
|
|
17828
|
+
*/ _proto._setTransformDirty = function _setTransformDirty() {
|
|
17829
|
+
if (this.transform) {
|
|
17830
|
+
this.transform._parentChange();
|
|
17831
|
+
} else {
|
|
17832
|
+
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17833
|
+
this._children[i]._setTransformDirty();
|
|
17834
|
+
}
|
|
17835
|
+
}
|
|
17836
|
+
};
|
|
17826
17837
|
_proto._addToChildrenList = function _addToChildrenList(index, child) {
|
|
17827
17838
|
var children = this._children;
|
|
17828
17839
|
var childCount = children.length;
|
|
@@ -17932,15 +17943,6 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17932
17943
|
child.isActive && child._setInActiveInHierarchy(activeChangedComponents, activeChangeFlag);
|
|
17933
17944
|
}
|
|
17934
17945
|
};
|
|
17935
|
-
_proto._setTransformDirty = function _setTransformDirty() {
|
|
17936
|
-
if (this.transform) {
|
|
17937
|
-
this.transform._parentChange();
|
|
17938
|
-
} else {
|
|
17939
|
-
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17940
|
-
this._children[i]._setTransformDirty();
|
|
17941
|
-
}
|
|
17942
|
-
}
|
|
17943
|
-
};
|
|
17944
17946
|
_proto._setSiblingIndex = function _setSiblingIndex(sibling, target) {
|
|
17945
17947
|
target = Math.min(target, sibling.length - 1);
|
|
17946
17948
|
if (target < 0) {
|
|
@@ -25666,6 +25668,7 @@ Shader.create(_PostProcessManager.UBER_SHADER_NAME, blitVs, UberPost);
|
|
|
25666
25668
|
if (!isRoot) {
|
|
25667
25669
|
entity._isRoot = true;
|
|
25668
25670
|
entity._removeFromParent();
|
|
25671
|
+
entity._setTransformDirty();
|
|
25669
25672
|
}
|
|
25670
25673
|
// Add or remove from scene's rootEntities
|
|
25671
25674
|
var oldScene = entity._scene;
|