Update engine.ts

This commit is contained in:
syuilo 2026-04-11 05:08:42 +09:00
commit 8427685f7b

View file

@ -1518,6 +1518,7 @@ export class RoomEngine {
public async addObject(type: string) {
if (!this.isEditMode) return;
if (this.grabbingCtx != null) return;
this.selectObject(null);
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
const distance = 50/*cm*/;