Skip to content

Commit d36b927

Browse files
committed
Add the asset path to the warning message.
1 parent 80aeee3 commit d36b927

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/bevy_animation/src/graph.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,12 @@ impl AssetLoader for AnimationGraphAssetLoader {
812812
SerializedAnimationClip::AssetPath(path),
813813
) => {
814814
if !already_warned {
815+
let path = load_context.asset_path();
815816
warn!(
816-
"Loaded an AnimationGraph asset which contains a legacy-style \
817-
SerializedAnimationClip. Please re-save the asset using \
818-
AnimationGraph::save to automatically migrate to the new format"
817+
"Loaded an AnimationGraph asset at \"{path}\" which contains a \
818+
legacy-style SerializedAnimationClip. Please re-save the asset \
819+
using AnimationGraph::save to automatically migrate to the new \
820+
format"
819821
);
820822
already_warned = true;
821823
}

0 commit comments

Comments
 (0)