libgdx / fbx-conv

Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes.
Apache License 2.0
448 stars 116 forks source link

Update FbxConverter.h #70

Closed paulados closed 9 years ago

paulados commented 9 years ago

This patch avoids to throw an unhandled exception when accesing "node->LclTranslation.GetName()" in case of propName == deformPercent

xoppa commented 9 years ago

Thanks! Would you mind to change it to using the log object, instead std::cout?

paulados commented 9 years ago

Sorry, I didn't realize ot the log class. Is it correct now?

xoppa commented 9 years ago

I'm afraid you can't concatenate strings like that. Please use the codes and messages to register the message. You can use a format string, e.g. %s to include the propName (although you don't have to do that, because in the line above it you've check that value).

paulados commented 9 years ago

I only check that with Visual 2010 it compiles without problem. Is it correct now?

xoppa commented 9 years ago

Thanks!