Skip to content

Commit

Permalink
Merge pull request #98 from Trouv/fix/texture_update
Browse files Browse the repository at this point in the history
fix: COPY_SRC no longer added to modified textures
  • Loading branch information
Trouv authored Jul 18, 2022
2 parents fe2569f + bfbad90 commit c10f0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ pub fn set_ldtk_texture_filters_to_nearest(
// https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs,
// except it only applies to the ldtk tilesets.
for event in texture_events.iter() {
if let AssetEvent::Created { handle } | AssetEvent::Modified { handle } = event {
if let AssetEvent::Created { handle } = event {
let mut set_texture_filters_to_nearest = false;

for (_, ldtk_asset) in ldtk_assets.iter() {
Expand Down

0 comments on commit c10f0d5

Please sign in to comment.