From bc11702f7d6ad8491850f53c94f6a0da6b4292f2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 18 Aug 2019 16:55:09 +0900 Subject: [PATCH] Fix #5290 --- src/client/app/common/scripts/room/room.ts | 1 + src/client/app/common/views/pages/room/room.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/client/app/common/scripts/room/room.ts b/src/client/app/common/scripts/room/room.ts index b2e2c300b..1b5a2cbb1 100644 --- a/src/client/app/common/scripts/room/room.ts +++ b/src/client/app/common/scripts/room/room.ts @@ -646,6 +646,7 @@ export class Room { @autobind public removeFurniture() { + this.exitTransformMode(); const obj = this.selectedObject; this.scene.remove(obj); this.objects = this.objects.filter(object => object.name !== obj.name); diff --git a/src/client/app/common/views/pages/room/room.vue b/src/client/app/common/views/pages/room/room.vue index 955e35701..43e99a54e 100644 --- a/src/client/app/common/views/pages/room/room.vue +++ b/src/client/app/common/views/pages/room/room.vue @@ -136,6 +136,8 @@ export default Vue.extend({ }, remove() { + this.isTranslateMode = false; + this.isRotateMode = false; room.removeFurniture(); },