mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Fix room previewer category
This commit is contained in:
parent
96ec50fd93
commit
dbeab77f03
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user