bevy/crates
Jay Oster 76cb662be1 Fix MIME type support for glTF buffer Data URIs (#3101)
# Objective

- The glTF 2.0 spec requires that Data URIs use one of two valid MIME types. `bevy_gltf` only supports one of these.
- See:
  - https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#_media_type_registrations
  - https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#file-extensions-and-media-types
  - https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#binary-data-storage

> Buffer data **MAY** alternatively be embedded in the glTF file via `data:` URI with base64 encoding. When `data:` URI is used for buffer storage, its mediatype field **MUST** be set to `application/octet-stream` or `application/gltf-buffer`.

(Emphasis in original.)

## Solution

- Check for both MIME types.
2021-11-11 01:58:57 +00:00
..
bevy_app Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_asset Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_audio Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_core Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_derive Update derive(DynamicPlugin) to edition 2021 (#3038) 2021-10-27 19:48:12 +00:00
bevy_diagnostic Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dylib Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dynamic_plugin Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ecs add detailed errors (#2994) 2021-11-06 20:53:11 +00:00
bevy_gilrs Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_gltf Fix MIME type support for glTF buffer Data URIs (#3101) 2021-11-11 01:58:57 +00:00
bevy_input Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_internal Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_log Clarify RUST_LOG override over LogSettings (#3095) 2021-11-11 01:43:51 +00:00
bevy_macro_utils Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_math Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_pbr Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_reflect Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_render Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_scene Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_sprite Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_tasks Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_text Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_transform Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ui Add docstring comment to Style to reference CSS (#2936) 2021-11-06 20:53:10 +00:00
bevy_utils explain absence of new constructor in Hash{Map, Set} docs; suggest default (#3077) 2021-11-06 20:53:12 +00:00
bevy_wgpu Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_window add position to WindowDescriptor (#3070) 2021-11-06 20:34:31 +00:00
bevy_winit add position to WindowDescriptor (#3070) 2021-11-06 20:34:31 +00:00