mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-03 23:28:00 -07:00
Fix #5290
This commit is contained in:
parent
7297f04f60
commit
59f6301772
2 changed files with 3 additions and 0 deletions
|
@ -646,6 +646,7 @@ export class Room {
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
public removeFurniture() {
|
public removeFurniture() {
|
||||||
|
this.exitTransformMode();
|
||||||
const obj = this.selectedObject;
|
const obj = this.selectedObject;
|
||||||
this.scene.remove(obj);
|
this.scene.remove(obj);
|
||||||
this.objects = this.objects.filter(object => object.name !== obj.name);
|
this.objects = this.objects.filter(object => object.name !== obj.name);
|
||||||
|
|
|
@ -136,6 +136,8 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
remove() {
|
remove() {
|
||||||
|
this.isTranslateMode = false;
|
||||||
|
this.isRotateMode = false;
|
||||||
room.removeFurniture();
|
room.removeFurniture();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue