From 23892a6deddc4fa367a09b278a78345112eb62ee Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 22 Mar 2016 20:30:25 +0100 Subject: [PATCH] FBX: add debugging tool to log class type + info. --- code/FBXDocument.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/FBXDocument.cpp b/code/FBXDocument.cpp index 0252d0eb1..e2c38aa85 100644 --- a/code/FBXDocument.cpp +++ b/code/FBXDocument.cpp @@ -79,6 +79,12 @@ LazyObject::~LazyObject() } +// ------------------------------------------------------------------------------------------------ +static void dumpObjectClassInfo( const char* obtype, const std::string &classtag ) { + DefaultLogger::get()->debug( "obtype: " + std::string(obtype )); + DefaultLogger::get()->debug( "Classtag: " + classtag ); +} + // ------------------------------------------------------------------------------------------------ const Object* LazyObject::Get(bool dieOnError) { @@ -137,8 +143,10 @@ const Object* LazyObject::Get(bool dieOnError) // so avoid constructing strings all the time. const char* obtype = key.begin(); const size_t length = static_cast(key.end()-key.begin()); - DefaultLogger::get()->debug( "obtype: " + std::string(obtype )); - DefaultLogger::get()->debug( "Classtag: " + classtag ); + + // For debugging + //dumpObjectClassInfo( objtype, classtag ); + if (!strncmp(obtype,"Geometry",length)) { if (!strcmp(classtag.c_str(),"Mesh")) { object.reset(new MeshGeometry(id,element,name,doc));