@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 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).add(new import_three8.Vector3(0, bottomY, 0));
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 });