Skip to content

Commit

Permalink
Fix non-determinism
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 19, 2024
1 parent 55f0bbd commit 02c4534
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/re_viewport/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ impl<'a> Viewport<'a> {
self.tree_edited |= tab_viewer.edited;

// Outline hovered & selected tiles:
for (tile_id, contents) in &tab_viewer.contents_per_tile_id {
if let Some(rect) = tree.tiles.rect(*tile_id) {
for contents in blueprint.contents_iter() {
let tile_id = contents.as_tile_id();
if let Some(rect) = tree.tiles.rect(tile_id) {
let item = contents.as_item();

let mut hovered = ctx.hovered().contains_item(&item);
Expand Down

0 comments on commit 02c4534

Please sign in to comment.