Skip to content

Commit

Permalink
Show sprite select tool only if sprite selected
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoodK committed Sep 27, 2024
1 parent b6b7119 commit a59eed6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ impl Component for SceneSpriteEditor<'_> {
}
}),
table::fixed(320.px(), |wh, ctx| {
if selected_scene_sprite.is_none() {
return;
}
ctx.add(sprite_select_tool::SpriteSelectTool {
wh,
asset_docs: asset_docs.clone(),
Expand Down

0 comments on commit a59eed6

Please sign in to comment.