From 849d46a0610a9f9951b8572b4e5246fc5c67b987 Mon Sep 17 00:00:00 2001 From: danielbui78 Date: Wed, 9 Aug 2023 07:56:51 -0700 Subject: [PATCH] Fix for Blender Fbx Export --- include/common_version.h | 2 +- src/DzBridgeAction.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/common_version.h b/include/common_version.h index 30f1828..a046e9b 100644 --- a/include/common_version.h +++ b/include/common_version.h @@ -5,6 +5,6 @@ #define COMMON_MAJOR 2023 #define COMMON_MINOR 1 #define COMMON_REV 1 -#define COMMON_BUILD 54 +#define COMMON_BUILD 55 #define COMMON_VERSION DZ_MAKE_VERSION( COMMON_MAJOR, COMMON_MINOR, COMMON_REV, COMMON_BUILD ) diff --git a/src/DzBridgeAction.cpp b/src/DzBridgeAction.cpp index e3e8725..12c6ba7 100644 --- a/src/DzBridgeAction.cpp +++ b/src/DzBridgeAction.cpp @@ -1248,8 +1248,12 @@ void DzBridgeAction::exportAnimation() SdkManager->SetIOSettings(ios); int FileFormat = -1; - FileFormat = SdkManager->GetIOPluginRegistry()->FindWriterIDByDescription("FBX ascii (*.fbx)"); - //qDebug() << "FileName: " << this->m_sDestinationFBX; +#ifdef VODSVERSION + FileFormat = SdkManager->GetIOPluginRegistry()->FindWriterIDByDescription("FBX ascii (*.fbx)"); +#else + FileFormat = SdkManager->GetIOPluginRegistry()->GetNativeWriterFormat(); +#endif + //qDebug() << "FileName: " << this->m_sDestinationFBX; FbxExporter* Exporter = FbxExporter::Create(SdkManager, ""); if (!Exporter->Initialize(this->m_sDestinationFBX.toLocal8Bit().data(), FileFormat, SdkManager->GetIOSettings())) {