Skip to content

Commit

Permalink
Can now change opacity for tiled images
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRace committed Nov 23, 2022
1 parent 9d22650 commit 587ff39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/image_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ fn split_image_into_tiles(
});

commands.entity(entity).insert(SpawnTiles(image_task));

commands.entity(entity).insert(TiledImage {
size: Vec2::new(to_tile.image_width, to_tile.image_height),
});
}
Err(error) => {
commands.spawn(Message {
Expand Down
6 changes: 0 additions & 6 deletions src/imc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,12 +914,6 @@ fn load_imc(
},
Draggable,
Opacity(1.0),
TiledImage {
size: Vec2::new(
slide.width_in_um() as f32,
slide.height_in_um() as f32,
),
},
BoundingBox {
x: 0.0,
y: 0.0,
Expand Down

0 comments on commit 587ff39

Please sign in to comment.