From 59f6301772070db97f70d8c51e1d1385e3f96c2b 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(); },