Add compile error for bad error draco config

KHR_draco_mesh_compression requires
DRACO_MESH_COMPRESSION_SUPPORTED
pull/3614/head
RichardTea 2021-01-26 16:24:18 +00:00
parent dde7605158
commit f39ba8ddb2
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef ASSIMP_ENABLE_DRACO
#include "draco/compression/decode.h"
#include "draco/core/decoder_buffer.h"
#include "draco/draco_features.h"
#ifndef DRACO_MESH_COMPRESSION_SUPPORTED
#error glTF: KHR_draco_mesh_compression: draco library must have DRACO_MESH_COMPRESSION_SUPPORTED
#endif
#endif
using namespace Assimp;