@galacean/engine 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/browser.js CHANGED
@@ -26490,11 +26490,7 @@
26490
26490
  ], args));
26491
26491
  this._components.push(component);
26492
26492
  // @todo: temporary solution
26493
- if (_instanceof1$2(component, Transform)) {
26494
- var transform = this._transform;
26495
- this._transform = component;
26496
- transform == null ? void 0 : transform.destroy();
26497
- }
26493
+ if (_instanceof1$2(component, Transform)) this._setTransform(component);
26498
26494
  component._setActive(true, ActiveChangeFlag.All);
26499
26495
  return component;
26500
26496
  };
@@ -26923,6 +26919,16 @@
26923
26919
  }
26924
26920
  }
26925
26921
  };
26922
+ _proto._setTransform = function _setTransform(value) {
26923
+ var _this__transform;
26924
+ (_this__transform = this._transform) == null ? void 0 : _this__transform.destroy();
26925
+ this._transform = value;
26926
+ var children = this._children;
26927
+ for(var i = 0, n = children.length; i < n; i++){
26928
+ var _children_i_transform;
26929
+ (_children_i_transform = children[i].transform) == null ? void 0 : _children_i_transform._parentChange();
26930
+ }
26931
+ };
26926
26932
  /**
26927
26933
  * @deprecated
26928
26934
  */ _proto.getInvModelMatrix = function getInvModelMatrix() {
@@ -51238,7 +51244,7 @@
51238
51244
  ], EXT_texture_webp);
51239
51245
 
51240
51246
  //@ts-ignore
51241
- var version = "1.5.13";
51247
+ var version = "1.5.15";
51242
51248
  console.log("Galacean Engine Version: " + version);
51243
51249
  for(var key in CoreObjects){
51244
51250
  Loader.registerClass(key, CoreObjects[key]);