assimp: Support compilation with Assimp 5.x

Closes #1212
This commit is contained in:
Daniel 2021-12-04 13:31:09 +02:00 committed by rdb
parent 420d1cee61
commit 80892ede94
2 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,15 @@ void PandaLogger::OnDebug(const char *message) {
assimp_cat.debug() << message << "\n";
}
/**
*
*/
void PandaLogger::OnVerboseDebug(const char *message) {
if (assimp_cat.is_spam()) {
assimp_cat.spam() << message << "\n";
}
}
/**
*
*/

View File

@ -30,11 +30,17 @@ protected:
INLINE bool attachStream(Assimp::LogStream*, unsigned int) {
return false;
};
INLINE bool detachStream(Assimp::LogStream*, unsigned int) {
return false;
};
// Kept for compatibility with Assimp 4.x
INLINE bool detatchStream(Assimp::LogStream*, unsigned int) {
return false;
};
void OnDebug(const char *message);
void OnVerboseDebug(const char *message);
void OnError(const char *message);
void OnInfo(const char *message);
void OnWarn(const char *message);