mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
Added decodeURIComponent to mesh names
Fixes CURA-1110
This commit is contained in:
parent
0c92329e54
commit
43d13096a1
1 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ UM.MainWindow
|
|||
onTriggered: {
|
||||
UM.MeshFileHandler.readLocalFile(modelData);
|
||||
var meshName = backgroundItem.getMeshName(modelData.toString())
|
||||
backgroundItem.hasMesh(meshName)
|
||||
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||
}
|
||||
}
|
||||
onObjectAdded: recentFilesMenu.insertItem(index, object)
|
||||
|
@ -343,7 +343,7 @@ UM.MainWindow
|
|||
if (i == drop.urls.length - 1)
|
||||
{
|
||||
var meshName = backgroundItem.getMeshName(drop.urls[i].toString())
|
||||
backgroundItem.hasMesh(meshName)
|
||||
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -696,8 +696,8 @@ UM.MainWindow
|
|||
folder = f;
|
||||
|
||||
UM.MeshFileHandler.readLocalFile(fileUrl)
|
||||
var meshName = backgroundItem.getMeshName(fileUrl.toString())
|
||||
backgroundItem.hasMesh(meshName)
|
||||
var meshName = backgroundItem.getMeshName(fileUrl.toString(0x0))
|
||||
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue