@galacean/engine-core 1.5.13 → 1.5.15
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 +11 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +11 -5
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Entity.d.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -21697,11 +21697,7 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
21697
21697
|
], args));
|
|
21698
21698
|
this._components.push(component);
|
|
21699
21699
|
// @todo: temporary solution
|
|
21700
|
-
if (_instanceof(component, Transform))
|
|
21701
|
-
var transform = this._transform;
|
|
21702
|
-
this._transform = component;
|
|
21703
|
-
transform == null ? void 0 : transform.destroy();
|
|
21704
|
-
}
|
|
21700
|
+
if (_instanceof(component, Transform)) this._setTransform(component);
|
|
21705
21701
|
component._setActive(true, ActiveChangeFlag.All);
|
|
21706
21702
|
return component;
|
|
21707
21703
|
};
|
|
@@ -22130,6 +22126,16 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
22130
22126
|
}
|
|
22131
22127
|
}
|
|
22132
22128
|
};
|
|
22129
|
+
_proto._setTransform = function _setTransform(value) {
|
|
22130
|
+
var _this__transform;
|
|
22131
|
+
(_this__transform = this._transform) == null ? void 0 : _this__transform.destroy();
|
|
22132
|
+
this._transform = value;
|
|
22133
|
+
var children = this._children;
|
|
22134
|
+
for(var i = 0, n = children.length; i < n; i++){
|
|
22135
|
+
var _children_i_transform;
|
|
22136
|
+
(_children_i_transform = children[i].transform) == null ? void 0 : _children_i_transform._parentChange();
|
|
22137
|
+
}
|
|
22138
|
+
};
|
|
22133
22139
|
/**
|
|
22134
22140
|
* @deprecated
|
|
22135
22141
|
*/ _proto.getInvModelMatrix = function getInvModelMatrix() {
|