@galacean/engine-core 1.5.14 → 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/module.js
CHANGED
|
@@ -21693,11 +21693,7 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
21693
21693
|
], args));
|
|
21694
21694
|
this._components.push(component);
|
|
21695
21695
|
// @todo: temporary solution
|
|
21696
|
-
if (_instanceof(component, Transform))
|
|
21697
|
-
var transform = this._transform;
|
|
21698
|
-
this._transform = component;
|
|
21699
|
-
transform == null ? void 0 : transform.destroy();
|
|
21700
|
-
}
|
|
21696
|
+
if (_instanceof(component, Transform)) this._setTransform(component);
|
|
21701
21697
|
component._setActive(true, ActiveChangeFlag.All);
|
|
21702
21698
|
return component;
|
|
21703
21699
|
};
|
|
@@ -22126,6 +22122,16 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
22126
22122
|
}
|
|
22127
22123
|
}
|
|
22128
22124
|
};
|
|
22125
|
+
_proto._setTransform = function _setTransform(value) {
|
|
22126
|
+
var _this__transform;
|
|
22127
|
+
(_this__transform = this._transform) == null ? void 0 : _this__transform.destroy();
|
|
22128
|
+
this._transform = value;
|
|
22129
|
+
var children = this._children;
|
|
22130
|
+
for(var i = 0, n = children.length; i < n; i++){
|
|
22131
|
+
var _children_i_transform;
|
|
22132
|
+
(_children_i_transform = children[i].transform) == null ? void 0 : _children_i_transform._parentChange();
|
|
22133
|
+
}
|
|
22134
|
+
};
|
|
22129
22135
|
/**
|
|
22130
22136
|
* @deprecated
|
|
22131
22137
|
*/ _proto.getInvModelMatrix = function getInvModelMatrix() {
|