mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 15:35:54 +08:00
Added decodeURIComponent to mesh names
Fixes CURA-1110
This commit is contained in:
parent
0c92329e54
commit
43d13096a1
@ -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…
x
Reference in New Issue
Block a user