From b7fa25f8f467d7d58e21fa9f9c1b4c2b82ae3f73 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 22 Oct 2023 12:08:09 +0200 Subject: [PATCH] assimp: Disable loading .glb and .gltf via Assimp by default Fixes #1537 --- pandatool/src/assimp/loaderFileTypeAssimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandatool/src/assimp/loaderFileTypeAssimp.cxx b/pandatool/src/assimp/loaderFileTypeAssimp.cxx index 80e9793431..bd3061f250 100644 --- a/pandatool/src/assimp/loaderFileTypeAssimp.cxx +++ b/pandatool/src/assimp/loaderFileTypeAssimp.cxx @@ -59,7 +59,7 @@ string LoaderFileTypeAssimp:: get_additional_extensions() const { // This may be called at static init time, so ensure it is constructed now. static ConfigVariableString assimp_disable_extensions - ("assimp-disable-extensions", "", + ("assimp-disable-extensions", "gltf glb", PRC_DESC("A list of extensions (without preceding dot) that should not be " "loaded via the Assimp loader, even if Assimp supports these " "formats. It is useful to set this for eg. gltf and glb files "