Fix non-ASCII path corruption on Windows using from_path() helper (#13036)

This commit is contained in:
SoftFever
2026-03-30 14:51:45 +08:00
committed by GitHub
parent 8248b06337
commit a475e35730
5 changed files with 13 additions and 13 deletions

View File

@@ -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;