Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Load Quat Type for Scene Example #5790

Closed
Carter0 opened this issue Aug 24, 2022 · 2 comments
Closed

Unable to Load Quat Type for Scene Example #5790

Carter0 opened this issue Aug 24, 2022 · 2 comments
Labels
C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples

Comments

@Carter0
Copy link
Contributor

Carter0 commented Aug 24, 2022

Bevy version

I just pulled down main right now.

What you did

I ran the scene example with cargo run --example scene

What went wrong

I get this warning...

WARN bevy_asset::asset_server: encountered an error while loading an asset: No registration found for glam::f32::scalar::quat::Quat

If I delete the transform component from the ron file, it seems to work fine and I get

2022-08-24T22:28:06.755070Z  INFO scene:   Entity(3)
2022-08-24T22:28:06.755115Z  INFO scene:     ComponentA: { x: 1 y: 2 }

2022-08-24T22:28:06.816769Z  INFO scene:   Entity(4)
2022-08-24T22:28:06.816809Z  INFO scene:     ComponentA: { x: 3 y: 4 }
@Carter0 Carter0 added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Aug 24, 2022
@NathanSWard NathanSWard added C-Examples An addition or correction to our examples and removed S-Needs-Triage This issue needs to be labelled labels Aug 25, 2022
@tguichaoua
Copy link
Contributor

glam has been updated to 0.21 in 33f9b39.
The new type name for Quat is glam::f32::sse2::quat::Quat.

@DJMcNab
Copy link
Member

DJMcNab commented Aug 26, 2022

It's better than that. The name for the glam types depends on your target features - see e.g. https://github.com/bitshifter/glam-rs/blob/main/src/f32.rs

That is, there is no true type name for glam's Quat, as currently defined.

We need #5745 (comment)

@bors bors bot closed this as completed in e8439bf Aug 30, 2022
james7132 pushed a commit to james7132/bevy that referenced this issue Oct 28, 2022
# Objective

fix bevyengine#5790 

## Solution

Change type name in the scene file by its new name `glam::f32::sse2::quat::Quat`.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this issue Feb 1, 2023
# Objective

fix bevyengine#5790 

## Solution

Change type name in the scene file by its new name `glam::f32::sse2::quat::Quat`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants