Skip to content

Commit

Permalink
Change of nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi7190 committed Sep 19, 2024
1 parent 9755944 commit f3c5812
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nusamai/src/transformer/setting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl TransformerRegistry {
}
"textured_max_lod" => {
data_requirements.set_lod_filter(transformer::LodFilterSpec {
mode: transformer::LodFilterMode::TexturedMaxLod,
mode: transformer::LodFilterMode::TexturedHighest,
..Default::default()
});
data_requirements.set_appearance(true);
Expand Down
4 changes: 2 additions & 2 deletions nusamai/src/transformer/transform/lods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{pipeline::Feedback, transformer::Transform};
pub enum LodFilterMode {
Highest,
Lowest,
TexturedMaxLod,
TexturedHighest,
}

#[derive()]
Expand All @@ -31,7 +31,7 @@ impl FilterLodTransform {
impl Transform for FilterLodTransform {
fn transform(&mut self, _feedback: &Feedback, mut entity: Entity, out: &mut Vec<Entity>) {
match self.mode {
LodFilterMode::TexturedMaxLod => {
LodFilterMode::TexturedHighest => {
let original_lods = find_lods(&entity.root) & self.mask;
let mut current_lods = original_lods;
let mut highest_lod_entity = None;

Check warning on line 37 in nusamai/src/transformer/transform/lods.rs

View check run for this annotation

Codecov / codecov/patch

nusamai/src/transformer/transform/lods.rs#L35-L37

Added lines #L35 - L37 were not covered by tests
Expand Down

0 comments on commit f3c5812

Please sign in to comment.