mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
Merge branch 'codex/fbx-package' into codex/fbx-integration
This commit is contained in:
commit
4a84c00372
1 file changed
+1
-1
@@ -43,7 +43,7 @@ impl<'a> Package<'a> {
|
||||
.read(&self.name, self.limits.max_model_bytes)
|
||||
.map_err(|e| malformed(KIND, format!("package: {e}")))?
|
||||
.ok_or_else(|| malformed(KIND, "package FBX is missing"))?;
|
||||
if is_package(bytes) {
|
||||
if is_package(&bytes) {
|
||||
return Err(malformed(KIND, "the package holds another package"));
|
||||
}
|
||||
Ok(bytes)
|
||||
|
||||
Reference in new issue
Block a user