Skip to content

Commit

Permalink
Improve terrain texture asset handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Feb 21, 2024
1 parent 19084f4 commit 1a29f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/terrain/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ fn setup_textures(
LoadState::Failed => panic!("Texture loading has failed."),
LoadState::Loaded => {
// Ideally, this setup would happen in some kind of asset post
// processing. This is however not yet supported by Bevy.
// processing. This was not supported by Bevy at the time of
// implementation.
//
// https://github.com/bevyengine/bevy/discussions/3972
let image = images.get_mut(&textures.0).unwrap();
Expand All @@ -77,8 +78,7 @@ fn setup_textures(
true.into()
}
},
// TODO: Is this correct?
None => false.into(),
None => panic!("Terrain texture asset unknown."),
}
}

Expand Down

0 comments on commit 1a29f4e

Please sign in to comment.