assimp/code/AssetLib/M3D
Krishty 5cbc00a595 Fix Build With M3D Import Only
`M3DWrapper.h` is designed to omit the definition of `class M3DWrapper` if neither M3D import nor M3D export are compiled.
608bccd9cf touched the corresponding preprocessor checks and introduced a bug:
```
#ifndef ASSIMP_BUILD_NO_M3D_IMPORTER
#if !(ASSIMP_BUILD_NO_EXPORT || ASSIMP_BUILD_NO_M3D_EXPORTER)
class M3DWrapper {
```
When compiling
- with M3D import enabled,
- but with either export generally disabled or M3D export disabled specifically,
These checks evaluate to the wrong result and skip the definition, leading to a build failure in dependent code.
```
#if 1 // import enabled
#if !(1 || 1) // export disabled and M3D export disabled
```
This commit fixes the check to compile the definition if neither import is disabled.
2023-01-16 08:29:49 +01:00
..
M3DExporter.cpp Update copyrights 2022-01-10 21:13:43 +01:00
M3DExporter.h Update copyrights 2022-01-10 21:13:43 +01:00
M3DImporter.cpp Update M3DImporter.cpp 2022-01-18 22:23:01 +01:00
M3DImporter.h Update copyrights 2022-01-10 21:13:43 +01:00
M3DMaterials.h Update copyrights 2022-01-10 21:13:43 +01:00
M3DWrapper.cpp Fix Build With M3D Import Only 2023-01-16 08:29:49 +01:00
M3DWrapper.h Fix Build With M3D Import Only 2023-01-16 08:29:49 +01:00
m3d.h Fix heap out-of-bounds write in _m3d_safestr 2021-10-28 21:32:38 -04:00