Set exported mesh filename

This commit is contained in:
Lubos Lenco
2021-11-16 14:52:05 +01:00
parent 732c3c1f27
commit 96107650d0
+4
View File
@@ -318,7 +318,11 @@ class BoxExport {
if (ui.button(tr("Export"))) {
UIBox.show = false;
UIFiles.show(Context.exportMeshFormat == FormatObj ? "obj" : "arm", true, false, function(path: String) {
#if (krom_android || krom_ios)
var f = kha.Window.get(0).title;
#else
var f = UIFiles.filename;
#end
if (f == "") f = tr("untitled");
function doExport() {
ExportMesh.run(path + Path.sep + f, exportMeshHandle.position == 0 ? null : [Project.paintObjects[exportMeshHandle.position - 1]], applyDisplacement);