From b704ae5523b35ca6711015a69b2e48c1cc7d2d6d Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Sat, 14 Dec 2013 18:03:51 -0800 Subject: [PATCH] Corrected compile error in fbx pipeline --HG-- extra : source : 6e6f5784434d28e7c73d67efa21047a4ab325f66 --- KREngine/kraken/KRResource+fbx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/KREngine/kraken/KRResource+fbx.cpp b/KREngine/kraken/KRResource+fbx.cpp index 23c9281..4b1a7fd 100644 --- a/KREngine/kraken/KRResource+fbx.cpp +++ b/KREngine/kraken/KRResource+fbx.cpp @@ -130,7 +130,7 @@ void KRResource::LoadFbx(KRContext &context, const std::string& path) int animation_count = pFbxScene->GetSrcObjectCount(); for(int i = 0; i < animation_count; i++) { FbxAnimStack *animation = pFbxScene->GetSrcObject(i); - KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Animation %i of %i: %s", i+1, animation_count, animation->GetName().c_str()); + KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Animation %i of %i: %s", i+1, animation_count, animation->GetName()); KRAnimation *new_animation = LoadAnimation(context, animation); if(new_animation) { context.getAnimationManager()->addAnimation(new_animation); @@ -142,7 +142,7 @@ void KRResource::LoadFbx(KRContext &context, const std::string& path) int curve_count = pFbxScene->GetSrcObjectCount(); for(int i=0; i < curve_count; i++) { FbxAnimCurve *curve = pFbxScene->GetSrcObject(i); - KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Animation Curve %i of %i: %s", i+1, curve_count, curve->GetName().c_str()); + KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Animation Curve %i of %i: %s", i+1, curve_count, curve->GetName()); KRAnimationCurve *new_curve = LoadAnimationCurve(context, curve); if(new_curve) { @@ -156,7 +156,7 @@ void KRResource::LoadFbx(KRContext &context, const std::string& path) KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, "\nLoading materials..."); for(int i=0; i < material_count; i++) { FbxSurfaceMaterial *material = pFbxScene->GetSrcObject(i); - KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Material %i of %i: %s", i+1, material_count, material->GetName().c_str()); + KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Material %i of %i: %s", i+1, material_count, material->GetName()); LoadMaterial(context, material); } @@ -166,7 +166,7 @@ void KRResource::LoadFbx(KRContext &context, const std::string& path) for(int i=0; i < mesh_count; i++) { FbxMesh *mesh = pFbxScene->GetSrcObject(i); - KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Mesh %i of %i: %s", i+1, mesh_count, mesh->GetNode()->GetName().c_str()); + KRContext::Log(KRContext::LOG_LEVEL_INFORMATION, " Mesh %i of %i: %s", i+1, mesh_count, mesh->GetNode()->GetName()); LoadMesh(context, pFbxScene, pGeometryConverter, mesh); }