This commit is contained in:
syuilo
2019-08-19 16:05:57 +09:00
parent 01e692b353
commit 311a4f28b0
3 changed files with 31 additions and 2 deletions

View File

@ -696,6 +696,21 @@ export class Room {
this.onChangeSelect(null);
}
/**
* 全ての家具を部屋から削除します
*/
@autobind
public removeAllFurnitures() {
this.exitTransformMode();
for (const obj of this.objects) {
this.scene.remove(obj);
}
this.objects = [];
this.furnitures = [];
this.selectedObject = null;
this.onChangeSelect(null);
}
/**
* 部屋の床の色を変更します
* @param color 色