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`
This commit is contained in:
Rob Parrett 2024-10-11 08:35:22 -07:00 committed by GitHub
parent aa5e93d0bf
commit 6ad6eaa873
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}