@shopware-ag/dive 1.6.0 → 1.6.1
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/build/dive.cjs +1 -1
- package/build/dive.cjs.map +1 -1
- package/build/dive.js +1 -1
- package/build/dive.js.map +1 -1
- package/package.json +1 -1
- package/src/model/Model.ts +1 -1
- package/src/model/__test__/Model.test.ts +8 -1
package/build/dive.js
CHANGED
|
@@ -1247,7 +1247,7 @@ var DIVEModel = class extends Object3D6 {
|
|
|
1247
1247
|
const meshBB = mesh.geometry.boundingBox;
|
|
1248
1248
|
const worldPos = mesh.localToWorld(meshBB.max.clone());
|
|
1249
1249
|
const oldPos = this.position.clone();
|
|
1250
|
-
const newPos = this.position.clone().setY(worldPos.y).
|
|
1250
|
+
const newPos = this.position.clone().setY(worldPos.y).sub(new Vector32(0, bottomY, 0));
|
|
1251
1251
|
this.position.copy(newPos);
|
|
1252
1252
|
if (this.position.y === oldPos.y) return;
|
|
1253
1253
|
(_a = DIVECommunication.get(this.userData.id)) == null ? void 0 : _a.PerformAction("UPDATE_OBJECT", { id: this.userData.id, position: this.position, rotation: this.rotation, scale: this.scale });
|