Skip to content

Commit ec2ee8b

Browse files
committed
gltfpack: Silence misleading warning about EXT/KHR meshopt_compression
When converting between EXT & KHR formats (e.g. using `-ce khr` on a file with EXT_meshopt_compression or vice versa), the extension present in the input file is absent in the extensions[] list, which generates a warning despite the fact that we can correctly decode the data from either extension.
1 parent 935dc6a commit ec2ee8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gltf/gltfpack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ static size_t process(cgltf_data* data, const char* input_path, const char* outp
875875
{
876876
const char* ext = data->extensions_required[i];
877877

878-
if (!isExtensionSupported(extensions, sizeof(extensions) / sizeof(extensions[0]), ext))
878+
if (!isExtensionSupported(extensions, sizeof(extensions) / sizeof(extensions[0]), ext) && strstr(ext, "_meshopt_compression") == NULL)
879879
fprintf(stderr, "Warning: required extension %s is not supported and will be skipped\n", ext);
880880
}
881881

0 commit comments

Comments
 (0)