Skip to content

Commit

Permalink
Fix for Blender Fbx Export
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbui78 committed Aug 9, 2023
1 parent 257643e commit 849d46a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/common_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
8 changes: 6 additions & 2 deletions src/DzBridgeAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
{
Expand Down

0 comments on commit 849d46a

Please sign in to comment.