@galacean/engine-core 1.3.2 → 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/types/2d/data/RenderData2D.d.ts +0 -1
- package/types/RenderPipeline/MeshRenderData.d.ts +0 -17
- package/types/RenderPipeline/MeshRenderElement.d.ts +0 -17
- package/types/RenderPipeline/RenderPass.d.ts +0 -55
- package/types/RenderPipeline/SpriteElement.d.ts +0 -13
- package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -10
- package/types/RenderPipeline/TextRenderElement.d.ts +0 -6
- package/types/asset/IRefObject.d.ts +0 -2
- package/types/asset/RefObject.d.ts +0 -27
- package/types/base/Event.d.ts +0 -24
- package/types/base/Util.d.ts +0 -14
- package/types/physics/PhysicsManager.d.ts +0 -76
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +0 -6
package/dist/miniprogram.js
CHANGED
|
@@ -17824,6 +17824,17 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17824
17824
|
this._setInActiveInHierarchy(this._activeChangedComponents, activeChangeFlag);
|
|
17825
17825
|
this._setActiveComponents(false, activeChangeFlag);
|
|
17826
17826
|
};
|
|
17827
|
+
/**
|
|
17828
|
+
* @internal
|
|
17829
|
+
*/ _proto._setTransformDirty = function _setTransformDirty() {
|
|
17830
|
+
if (this.transform) {
|
|
17831
|
+
this.transform._parentChange();
|
|
17832
|
+
} else {
|
|
17833
|
+
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17834
|
+
this._children[i]._setTransformDirty();
|
|
17835
|
+
}
|
|
17836
|
+
}
|
|
17837
|
+
};
|
|
17827
17838
|
_proto._addToChildrenList = function _addToChildrenList(index, child) {
|
|
17828
17839
|
var children = this._children;
|
|
17829
17840
|
var childCount = children.length;
|
|
@@ -17933,15 +17944,6 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17933
17944
|
child.isActive && child._setInActiveInHierarchy(activeChangedComponents, activeChangeFlag);
|
|
17934
17945
|
}
|
|
17935
17946
|
};
|
|
17936
|
-
_proto._setTransformDirty = function _setTransformDirty() {
|
|
17937
|
-
if (this.transform) {
|
|
17938
|
-
this.transform._parentChange();
|
|
17939
|
-
} else {
|
|
17940
|
-
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17941
|
-
this._children[i]._setTransformDirty();
|
|
17942
|
-
}
|
|
17943
|
-
}
|
|
17944
|
-
};
|
|
17945
17947
|
_proto._setSiblingIndex = function _setSiblingIndex(sibling, target) {
|
|
17946
17948
|
target = Math.min(target, sibling.length - 1);
|
|
17947
17949
|
if (target < 0) {
|
|
@@ -25667,6 +25669,7 @@ Shader.create(_PostProcessManager.UBER_SHADER_NAME, blitVs, UberPost);
|
|
|
25667
25669
|
if (!isRoot) {
|
|
25668
25670
|
entity._isRoot = true;
|
|
25669
25671
|
entity._removeFromParent();
|
|
25672
|
+
entity._setTransformDirty();
|
|
25670
25673
|
}
|
|
25671
25674
|
// Add or remove from scene's rootEntities
|
|
25672
25675
|
var oldScene = entity._scene;
|
package/dist/module.js
CHANGED
|
@@ -17819,6 +17819,17 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17819
17819
|
this._setInActiveInHierarchy(this._activeChangedComponents, activeChangeFlag);
|
|
17820
17820
|
this._setActiveComponents(false, activeChangeFlag);
|
|
17821
17821
|
};
|
|
17822
|
+
/**
|
|
17823
|
+
* @internal
|
|
17824
|
+
*/ _proto._setTransformDirty = function _setTransformDirty() {
|
|
17825
|
+
if (this.transform) {
|
|
17826
|
+
this.transform._parentChange();
|
|
17827
|
+
} else {
|
|
17828
|
+
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17829
|
+
this._children[i]._setTransformDirty();
|
|
17830
|
+
}
|
|
17831
|
+
}
|
|
17832
|
+
};
|
|
17822
17833
|
_proto._addToChildrenList = function _addToChildrenList(index, child) {
|
|
17823
17834
|
var children = this._children;
|
|
17824
17835
|
var childCount = children.length;
|
|
@@ -17928,15 +17939,6 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
17928
17939
|
child.isActive && child._setInActiveInHierarchy(activeChangedComponents, activeChangeFlag);
|
|
17929
17940
|
}
|
|
17930
17941
|
};
|
|
17931
|
-
_proto._setTransformDirty = function _setTransformDirty() {
|
|
17932
|
-
if (this.transform) {
|
|
17933
|
-
this.transform._parentChange();
|
|
17934
|
-
} else {
|
|
17935
|
-
for(var i = 0, len = this._children.length; i < len; i++){
|
|
17936
|
-
this._children[i]._setTransformDirty();
|
|
17937
|
-
}
|
|
17938
|
-
}
|
|
17939
|
-
};
|
|
17940
17942
|
_proto._setSiblingIndex = function _setSiblingIndex(sibling, target) {
|
|
17941
17943
|
target = Math.min(target, sibling.length - 1);
|
|
17942
17944
|
if (target < 0) {
|
|
@@ -25662,6 +25664,7 @@ Shader.create(_PostProcessManager.UBER_SHADER_NAME, blitVs, UberPost);
|
|
|
25662
25664
|
if (!isRoot) {
|
|
25663
25665
|
entity._isRoot = true;
|
|
25664
25666
|
entity._removeFromParent();
|
|
25667
|
+
entity._setTransformDirty();
|
|
25665
25668
|
}
|
|
25666
25669
|
// Add or remove from scene's rootEntities
|
|
25667
25670
|
var oldScene = entity._scene;
|