Skip to content

Commit

Permalink
feat: remove restriction that root assets must be metadata assets. (#236
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zicklag authored Oct 15, 2023
1 parent 155636c commit 6575222
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions framework_crates/bones_asset/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,6 @@ impl AssetServer {
);
}

if !path_is_metadata(&meta.root) {
anyhow::bail!(
"Root asset must be a JSON or YAML file with a name in the form: \
[filename].[asset_kind].[yaml|json]"
);
}

// Load the asset and produce a handle
let root_loc = AssetLocRef {
path: &meta.root,
Expand Down Expand Up @@ -372,13 +365,6 @@ impl AssetServer {
.context("Could not load pack file")?;
let meta: CorePackfileMeta = serde_yaml::from_slice(&packfile_contents)?;

if !path_is_metadata(&meta.root) {
anyhow::bail!(
"Root asset must be a JSON or YAML file with a name in the form: \
[filename].[asset_kind].[yaml|json]"
);
}

// Load the asset and produce a handle
let root_loc = AssetLocRef {
path: &meta.root,
Expand Down

0 comments on commit 6575222

Please sign in to comment.