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