Skip to content

Commit

Permalink
Merge branch 'master' into ui-olympUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruor committed Sep 3, 2022
2 parents 3454a89 + f5721f0 commit 4cbeb1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/loaded_state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ function state.getLayerVisible(layer)
end

function state.setLayerVisible(layer, visible, silent)
local rooms = state.map and state.map.rooms or {}
local info = state.layerInformation[layer]

if not info then
Expand All @@ -301,7 +302,7 @@ function state.setLayerVisible(layer, visible, silent)
local selectedItem, selectedItemType = state.getSelectedItem()

celesteRender.clearBatchingTasks()
celesteRender.forceRedrawVisibleRooms(state.map.rooms, state, selectedItem, selectedItemType)
celesteRender.forceRedrawVisibleRooms(rooms, state, selectedItem, selectedItemType)
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/snapshot_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ local function applyRoomChanges(data, target)
end

celesteRender.invalidateRoomCache(targetRoom)
celesteRender.forceRoomBatchRender(targetRoom, viewportHandler.viewport)
celesteRender.forceRoomBatchRender(targetRoom, state)
end
end

Expand Down

0 comments on commit 4cbeb1b

Please sign in to comment.