mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
FIX:fixed cant not set cover img of 3mf
Change-Id: I3beabd0ccd9fad1e5c48b8c92cc58aba9a4c4210
This commit is contained in:
parent
e03ac4957b
commit
c1ad24d660
1 changed files with 5 additions and 2 deletions
|
@ -456,7 +456,9 @@ 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();
|
||||
fs::path path(into_path(m_file_name));
|
||||
wxGetApp().plater()->model().model_info->cover_file = path.string();
|
||||
//wxGetApp().plater()->model().model_info->cover_file = m_file_name.ToStdString();
|
||||
|
||||
auto full_path = m_file_path.branch_path();
|
||||
auto full_root_path = full_path.branch_path();
|
||||
|
@ -696,7 +698,8 @@ void AuFolderPanel::update_cover()
|
|||
if (wxGetApp().plater()->model().model_info != nullptr) {
|
||||
for (auto i = 0; i < m_aufiles_list.GetCount(); i++) {
|
||||
AuFiles *aufile = m_aufiles_list[i];
|
||||
if (wxGetApp().plater()->model().model_info->cover_file == aufile->file->m_file_name) {
|
||||
|
||||
if (wxString::FromUTF8(wxGetApp().plater()->model().model_info->cover_file) == aufile->file->m_file_name) {
|
||||
aufile->file->set_cover(true);
|
||||
} else {
|
||||
aufile->file->set_cover(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue