assimp/code
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
..
AssetLib Fix Build With M3D Import Only 2023-01-16 08:29:49 +01:00
CApi Update copyrights 2022-01-10 21:13:43 +01:00
Common Refactoring: Move asserthandler header to include 2022-12-23 16:19:39 +01:00
Material Update copyrights 2022-01-10 21:13:43 +01:00
Pbrt Manually fix up 100 more instances where it should be defaulted 2022-08-25 12:20:13 -04:00
PostProcessing Apply various clang-tidy checks for smartprs and modern C++ types 2022-11-08 11:03:55 -05:00
res Use mingw.include 2022-06-30 20:58:34 +02:00
.editorconfig Implemented: Add editor config for source code 2015-06-28 15:50:57 -06:00
CMakeLists.txt Fix several spelling mistakes & a comment 2023-01-01 13:31:48 -05:00