------------------------------------------------------------------------------------------------ Validate post process step flags
| 366 | // ------------------------------------------------------------------------------------------------ |
| 367 | // Validate post process step flags |
| 368 | bool _ValidateFlags(unsigned int pFlags) { |
| 369 | if (pFlags & aiProcess_GenSmoothNormals && pFlags & aiProcess_GenNormals) { |
| 370 | ASSIMP_LOG_ERROR("#aiProcess_GenSmoothNormals and #aiProcess_GenNormals are incompatible"); |
| 371 | return false; |
| 372 | } |
| 373 | if (pFlags & aiProcess_OptimizeGraph && pFlags & aiProcess_PreTransformVertices) { |
| 374 | ASSIMP_LOG_ERROR("#aiProcess_OptimizeGraph and #aiProcess_PreTransformVertices are incompatible"); |
| 375 | return false; |
| 376 | } |
| 377 | return true; |
| 378 | } |
| 379 | |
| 380 | // ------------------------------------------------------------------------------------------------ |
| 381 | // Free the current scene |
no outgoing calls
no test coverage detected