Skip to content

Prepend root_path to meta path in HttpWasmAssetReader #10527

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

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

Waridley
Copy link
Contributor

Objective

Fixes an issue where Bevy will look for .meta files in the root of the server instead of imported_assets/Default on the web.

Solution

self.root_path.join was seemingly forgotten in the read_meta function on HttpWasmAssetReader, though it was included in the read function. This PR simply adds the missing function call.

@alice-i-cecile alice-i-cecile added this to the 0.12.1 milestone Nov 13, 2023
@Waridley
Copy link
Contributor Author

async-executor just broke the wasm build right before I made this PR 😞

smol-rs/async-executor#72

@cart cart enabled auto-merge November 14, 2023 01:28
@cart cart added this pull request to the merge queue Nov 14, 2023
Merged via the queue into bevyengine:main with commit 9f4c3e9 Nov 14, 2023
@Waridley Waridley deleted the wasm_meta_path_fix branch November 14, 2023 20:40
cart pushed a commit that referenced this pull request Nov 30, 2023
# Objective

Fixes an issue where Bevy will look for `.meta` files in the root of the
server instead of `imported_assets/Default` on the web.

## Solution

`self.root_path.join` was seemingly forgotten in the `read_meta`
function on `HttpWasmAssetReader`, though it was included in the `read`
function. This PR simply adds the missing function call.
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
…0527)

# Objective

Fixes an issue where Bevy will look for `.meta` files in the root of the
server instead of `imported_assets/Default` on the web.

## Solution

`self.root_path.join` was seemingly forgotten in the `read_meta`
function on `HttpWasmAssetReader`, though it was included in the `read`
function. This PR simply adds the missing function call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants