mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 21:35:28 +02:00
Update engine.ts
This commit is contained in:
@@ -1518,6 +1518,7 @@ export class RoomEngine {
|
|||||||
public async addObject(type: string) {
|
public async addObject(type: string) {
|
||||||
if (!this.isEditMode) return;
|
if (!this.isEditMode) return;
|
||||||
if (this.grabbingCtx != null) return;
|
if (this.grabbingCtx != null) return;
|
||||||
|
this.selectObject(null);
|
||||||
|
|
||||||
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
|
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
|
||||||
const distance = 50/*cm*/;
|
const distance = 50/*cm*/;
|
||||||
|
|||||||
Reference in New Issue
Block a user