Skip to content

Commit

Permalink
Fix println in morph_targets example (#15851)
Browse files Browse the repository at this point in the history
# 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`
  • Loading branch information
rparrett authored Oct 11, 2024
1 parent aa5e93d commit 6ad6eaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/animation/morph_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ fn name_morphs(
let Some(names) = mesh.morph_target_names() else {
return;
};

info!("Target names:");
for name in names {
println!(" {name}");
info!(" {name}");
}
*has_printed = true;
}

0 comments on commit 6ad6eaa

Please sign in to comment.