babylonjs-gui 9.30.0 → 9.31.0
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/babylon.gui.es5.js +2 -2
- package/babylon.gui.js +1 -1
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/package.json +2 -2
package/babylon.gui.es5.js
CHANGED
|
@@ -7235,10 +7235,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7235
7235
|
return;
|
|
7236
7236
|
var i = this._host.utilityLayer.utilityLayerScene, s = i.activeCamera;
|
|
7237
7237
|
if (s) {
|
|
7238
|
-
var a_52 = s.getWorldMatrix(), n_32 = t.Vector3.TransformNormal(t.Vector3.
|
|
7238
|
+
var a_52 = s.getWorldMatrix(), n_32 = t.Vector3.TransformNormal(t.Vector3.Forward(i.useRightHandedSystem), a_52);
|
|
7239
7239
|
this.origin.setAll(0), this._gizmo.updateBoundingBox();
|
|
7240
7240
|
var o_28 = this.node.getAbsolutePivotPoint();
|
|
7241
|
-
this.node.position.equalsToFloats(0, 0, 0) && this.node.position.copyFrom(s.position).
|
|
7241
|
+
this.node.position.equalsToFloats(0, 0, 0) && this.node.position.copyFrom(s.position).addInPlace(n_32).subtractInPlace(o_28), this.node.rotationQuaternion = t.Quaternion.FromLookDirectionLH(n_32, new t.Vector3(0, 1, 0)), e && (this.dimensions = this.defaultDimensions);
|
|
7242
7242
|
}
|
|
7243
7243
|
};
|
|
7244
7244
|
Zt.prototype.dispose = function () { _super.prototype.dispose.call(this), this._titleBarMaterial.dispose(), this._contentMaterial.dispose(), this._titleBar.dispose(), this._titleBarTitle.dispose(), this._contentPlate.dispose(), this._backPlate.dispose(), this._followButton.dispose(), this._closeButton.dispose(), this._host.onPickedPointChangedObservable.remove(this._pickedPointObserver), this._defaultBehavior.sixDofDragBehavior.onPositionChangedObservable.remove(this._positionChangedObserver), this._defaultBehavior.detach(), this._gizmo.dispose(), this._contentDragBehavior.detach(); };
|