MCPcopy Create free account
hub / github.com/assimp/assimp / _ValidateFlags

Function _ValidateFlags

code/Common/Importer.cpp:368–378  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Validate post process step flags

Source from the content-addressed store, hash-verified

366// ------------------------------------------------------------------------------------------------
367// Validate post process step flags
368bool _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

Callers 2

ValidateFlagsMethod · 0.85
ApplyPostProcessingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected