FIX: fix saving wrong encoding to 3mf

Change-Id: Icebf770b3dde06216e427744de9377e3f0adda29
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-08-17 17:41:14 +08:00 committed by Lane.Wei
parent 5194e68ae4
commit 038a04175a
4 changed files with 67 additions and 27 deletions

View file

@ -364,7 +364,7 @@ void AuFile::on_set_cover()
{
if (wxGetApp().plater()->model().model_info == nullptr) { wxGetApp().plater()->model().model_info = std::make_shared<ModelInfo>(); }
wxGetApp().plater()->model().model_info->cover_file = m_file_name.ToStdString();
wxGetApp().plater()->model().model_info->cover_file = std::string(m_file_name.ToUTF8().data());
auto full_path = m_file_path.branch_path();
auto full_root_path = full_path.branch_path();