Skip to content

Commit

Permalink
Bugfix: Unicode filepath support in Fbx PostProcess Stage with DazBri…
Browse files Browse the repository at this point in the history
…dge Library integration
  • Loading branch information
danielbui78 committed Nov 26, 2024
1 parent 7ce9cb5 commit 8f95cee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bl_info = {
"name": "DazToBlender",
"author": "Daz 3D | https://www.daz3d.com",
"version": (2024, 2, 15, 105),
"version": (2024, 2, 17, 107),
"blender": (2, 80, 0),
"location": "3DView > ToolShelf",
"description": "Daz 3D transfer to Blender",
Expand Down
10 changes: 6 additions & 4 deletions DazStudioPlugin/DzBlenderAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,9 +1257,10 @@ bool DzBlenderAction::postProcessFbx(QString fbxFilePath)

OpenFBXInterface* openFBX = OpenFBXInterface::GetInterface();
FbxScene* pScene = openFBX->CreateScene("Base Mesh Scene");
if (openFBX->LoadScene(pScene, fbxFilePath.toUtf8().data()) == false)
if (openFBX->LoadScene(pScene, fbxFilePath) == false)
{
QString sFbxErrorMessage = tr("ERROR: DzBridge: openFBX->LoadScene(): ")
QString sFbxErrorMessage = tr("ERROR: DzBlenderBridge: openFBX->LoadScene(): ")
+ QString("(File: \"%1\") ").arg(fbxFilePath)
+ QString("[%1] %2").arg(openFBX->GetErrorCode()).arg(openFBX->GetErrorString());
dzApp->log(sFbxErrorMessage);
if (m_nNonInteractiveMode == 0) QMessageBox::warning(0, tr("Error"),
Expand Down Expand Up @@ -1343,9 +1344,10 @@ bool DzBlenderAction::postProcessFbx(QString fbxFilePath)
}
}

if (openFBX->SaveScene(pScene, fbxFilePath.toUtf8().data()) == false)
if (openFBX->SaveScene(pScene, fbxFilePath) == false)
{
QString sFbxErrorMessage = tr("ERROR: DzBridge: openFBX->SaveScene(): ")
QString sFbxErrorMessage = tr("ERROR: DzBlenderBridge: openFBX->SaveScene(): ")
+ QString("(File: \"%1\") ").arg(fbxFilePath)
+ QString("[%1] %2").arg(openFBX->GetErrorCode()).arg(openFBX->GetErrorString());
dzApp->log(sFbxErrorMessage);
if (m_nNonInteractiveMode == 0) QMessageBox::warning(0, tr("Error"),
Expand Down
Binary file modified DazStudioPlugin/Resources/blenderaddon.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions DazStudioPlugin/real_version.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#define PRODUCT_VERSION_STRING "2024 version 2.15"
#define PRODUCT_VERSION_STRING "2024 version 2.17"
#define VER_MAJOR 2024
#define VER_MINOR 2
#define VER_REV 15
#define VER_BUILD 105
#define VER_REV 17
#define VER_BUILD 107

#define TOSTRING(x) #x
#define VERSION_STRING TOSTRING(VER_MAJOR) "." TOSTRING(VER_MINOR) "." TOSTRING(VER_REV) "." TOSTRING(VER_BUILD)
2 changes: 1 addition & 1 deletion dzbridge-common

0 comments on commit 8f95cee

Please sign in to comment.