Skip to content

Commit

Permalink
allow empty texture on webp
Browse files Browse the repository at this point in the history
  • Loading branch information
marstaik committed May 30, 2024
1 parent d424adb commit 306c2b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gltf-json/src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ where
P: Fn() -> crate::Path,
R: FnMut(&dyn Fn() -> crate::Path, crate::validation::Error),
{
if cfg!(feature = "allow_empty_texture") {
if cfg!(any(
feature = "allow_empty_texture",
feature = "EXT_texture_webp"
)) {
if !source_is_empty(source) {
source.validate(root, path, report);
}
Expand Down

0 comments on commit 306c2b0

Please sign in to comment.