mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 19:32:18 +00:00
Fix non-ASCII path corruption on Windows using from_path() helper (#13036)
This commit is contained in:
@@ -12112,9 +12112,9 @@ void Plater::import_model_id(wxString download_info)
|
||||
/* load project */
|
||||
// Orca: If download is a zip file, treat it as if file has been drag and dropped on the plater
|
||||
if (target_path.extension() == ".zip")
|
||||
{ wxArrayString arr; arr.Add(wxString::FromUTF8(target_path.string())); this->load_files(arr); }
|
||||
{ wxArrayString arr; arr.Add(from_path(target_path)); this->load_files(arr); }
|
||||
else
|
||||
this->load_project(target_path.wstring());
|
||||
this->load_project(from_path(target_path));
|
||||
/*BBS set project info after load project, project info is reset in load project */
|
||||
//p->project.project_model_id = model_id;
|
||||
//p->project.project_design_id = design_id;
|
||||
|
||||
Reference in New Issue
Block a user