You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My PackFileReader considers pack files as a directory and starts reading the "directory" with read_directory and returns 1 file which is attempted to be loaded, eventually reaching this function
let source = self.get_source(asset_path.source())?;
. At that point path is global_assets.pak/internal_file.bmp and has lost the packfile:// and the source/reader resolves to the default one, not the packfile.
Additional information
Most of the AssetReader functions use Path and PathBuf instead of AssetPath, so it is easy to lose the source info
The text was updated successfully, but these errors were encountered:
Bevy version
main (0.12), just after PR #9885 is committed
What you did
I have 2 sources, registered as follow
When I try to load a folder in the setup system.
What went wrong
My
PackFileReader
considers pack files as a directory and starts reading the "directory" with read_directory and returns 1 file which is attempted to be loaded, eventually reaching this functionbevy/crates/bevy_asset/src/server/mod.rs
Line 676 in 35073cf
global_assets.pak/internal_file.bmp
and has lost thepackfile://
and the source/reader resolves to the default one, not thepackfile
.Additional information
Most of the AssetReader functions use Path and PathBuf instead of AssetPath, so it is easy to lose the source info
The text was updated successfully, but these errors were encountered: