Fix room previewer category

This commit is contained in:
Bill 2021-07-19 13:28:16 -04:00
parent 96ec50fd93
commit dbeab77f03

View File

@ -818,7 +818,7 @@ export class RoomPreviewer
{
if(this.isRoomEngineReady)
{
const roomObject = this._roomEngine.getRoomObject(this._previewRoomId, RoomPreviewer.PREVIEW_OBJECT_ID, RoomObjectCategory.UNIT);
const roomObject = this._roomEngine.getRoomObject(this._previewRoomId, RoomPreviewer.PREVIEW_OBJECT_ID, this._currentPreviewObjectCategory);
if(roomObject && roomObject.visualization) return roomObject.visualization.getImage(0xFFFFFF, -1);
}