mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 03:41:08 -07: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: {
|
onTriggered: {
|
||||||
UM.MeshFileHandler.readLocalFile(modelData);
|
UM.MeshFileHandler.readLocalFile(modelData);
|
||||||
var meshName = backgroundItem.getMeshName(modelData.toString())
|
var meshName = backgroundItem.getMeshName(modelData.toString())
|
||||||
backgroundItem.hasMesh(meshName)
|
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onObjectAdded: recentFilesMenu.insertItem(index, object)
|
onObjectAdded: recentFilesMenu.insertItem(index, object)
|
||||||
|
|
@ -343,7 +343,7 @@ UM.MainWindow
|
||||||
if (i == drop.urls.length - 1)
|
if (i == drop.urls.length - 1)
|
||||||
{
|
{
|
||||||
var meshName = backgroundItem.getMeshName(drop.urls[i].toString())
|
var meshName = backgroundItem.getMeshName(drop.urls[i].toString())
|
||||||
backgroundItem.hasMesh(meshName)
|
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -696,8 +696,8 @@ UM.MainWindow
|
||||||
folder = f;
|
folder = f;
|
||||||
|
|
||||||
UM.MeshFileHandler.readLocalFile(fileUrl)
|
UM.MeshFileHandler.readLocalFile(fileUrl)
|
||||||
var meshName = backgroundItem.getMeshName(fileUrl.toString())
|
var meshName = backgroundItem.getMeshName(fileUrl.toString(0x0))
|
||||||
backgroundItem.hasMesh(meshName)
|
backgroundItem.hasMesh(decodeURIComponent(meshName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue