Introduce logging support

pull/5522/head
Steve M 2024-03-31 07:46:29 -07:00
parent be6248ad43
commit 475a60298a
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,7 @@ Copyright (c) 2006-2024, assimp team
#ifndef ASSIMP_BUILD_NO_USD_IMPORTER
#include <memory>
#include <sstream>
// internal headers
#include <assimp/ai_assert.h>
@ -65,6 +66,10 @@ Copyright (c) 2006-2024, assimp team
#include "USDLoaderImplTinyusdz.h"
#include "USDLoaderUtil.h"
namespace {
const char *const TAG = "USDLoaderImplTinyusdz (C++)";
}
namespace Assimp {
using namespace std;
@ -72,6 +77,10 @@ void USDImporterImplTinyusdz::InternReadFile(
const std::string &pFile,
aiScene *pScene,
IOSystem *pIOHandler) {
// Grab filename for logging purposes
size_t pos = pFile.find_last_of('/');
string nameWExt = pFile.substr(pos + 1);
bool ret{ false };
tinyusdz::USDLoadOptions options;
tinyusdz::Stage stage;