Add compile error for bad error draco config

KHR_draco_mesh_compression requires
DRACO_MESH_COMPRESSION_SUPPORTED
This commit is contained in:
RichardTea
2021-01-26 16:24:18 +00:00
parent dde7605158
commit f39ba8ddb2

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;