pub fn load_bytes(path: &Path, bytes: &[u8]) -> Result<Document, LoadError>Expand description
Load an FBX byte slice into a core Document.
bytes supplies the top-level container exactly as captured by the
caller. This legacy byte-only entry point does not permit external resource
I/O; use load_bytes_with_resource_root when a trusted root is available.
§Errors
Returns LoadError::Path when path cannot be passed to ufbx,
LoadError::Fbx when the FBX container cannot be parsed, and
LoadError::Bake when an animation stack cannot be baked into the
linear TRS tracks that animsmith’s checks consume, and
LoadError::SourceFacts when the loader violates a core source-fact
binding invariant.