Skip to content

Commit 6ad6eaa

Browse files
authored
Fix println in morph_targets example (#15851)
# Objective This example uses `println` from a system, which we don't advise people do. It also gives no context for the debug prints, which I assumed to be stray debug code at first. ## Solution Use `info!`, and add a small amount of context so the console output looks deliberate. ## Testing `cargo run --example morph_targets`
1 parent aa5e93d commit 6ad6eaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/animation/morph_targets.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ fn name_morphs(
103103
let Some(names) = mesh.morph_target_names() else {
104104
return;
105105
};
106+
107+
info!("Target names:");
106108
for name in names {
107-
println!(" {name}");
109+
info!(" {name}");
108110
}
109111
*has_printed = true;
110112
}

0 commit comments

Comments
 (0)