Skip to content

Commit

Permalink
Update to latest egui_tiles (#2091)
Browse files Browse the repository at this point in the history
* Implement PartialEq for everything
* Fix warning spam on empty tree
* Nicer visuals when drag-dropping
  • Loading branch information
emilk committed May 11, 2023
1 parent 1ae501b commit 31025c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ecolor = "0.21.0"
eframe = { version = "0.21.3", default-features = false }
egui = { version = "0.21.0", features = ["extra_debug_asserts", "log"] }
egui_extras = { version = "0.21.0", features = ["log"] }
egui_tiles = { git = "https://github.com/rerun-io/egui_tiles", rev = "9a6ed5852a0d2f3b18db0c7b8fb1b1bf904b0a51" }
egui_tiles = { git = "https://github.com/rerun-io/egui_tiles", rev = "cd85328bc727ec9cd25d2e52583ec4ec2cff1381" }
egui-wgpu = "0.21.0"
emath = "0.21.0"
enumset = "1.0.12"
Expand Down
2 changes: 1 addition & 1 deletion crates/re_viewer/src/ui/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ impl<'a, 'b> egui_tiles::Behavior<SpaceViewId> for TabViewer<'a, 'b> {
_tile_id: egui_tiles::TileId,
tabs: &egui_tiles::Tabs,
) {
let Some(active) = tiles.get(tabs.active) else { return; };
let Some(active) = tabs.active.and_then(|active| tiles.get(active)) else { return; };
let egui_tiles::Tile::Pane(space_view_id) = active else { return; };
let space_view_id = *space_view_id;

Expand Down

0 comments on commit 31025c6

Please sign in to comment.