@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.cjs
CHANGED
|
@@ -1269,7 +1269,7 @@ var DIVEModel = class extends import_three8.Object3D {
|
|
|
1269
1269
|
const meshBB = mesh.geometry.boundingBox;
|
|
1270
1270
|
const worldPos = mesh.localToWorld(meshBB.max.clone());
|
|
1271
1271
|
const oldPos = this.position.clone();
|
|
1272
|
-
const newPos = this.position.clone().setY(worldPos.y).
|
|
1272
|
+
const newPos = this.position.clone().setY(worldPos.y).sub(new import_three8.Vector3(0, bottomY, 0));
|
|
1273
1273
|
this.position.copy(newPos);
|
|
1274
1274
|
if (this.position.y === oldPos.y) return;
|
|
1275
1275
|
(_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 });
|