This commit is contained in:
syuilo 2019-08-18 16:55:09 +09:00
parent 7297f04f60
commit 59f6301772
2 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -136,6 +136,8 @@ export default Vue.extend({
},
remove() {
this.isTranslateMode = false;
this.isRotateMode = false;
room.removeFurniture();
},