From 96107650d00f82d7ebf4c7af2e26fdc8bebdb8d6 Mon Sep 17 00:00:00 2001 From: Lubos Lenco Date: Tue, 16 Nov 2021 14:52:05 +0100 Subject: [PATCH] Set exported mesh filename --- Sources/arm/ui/BoxExport.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/arm/ui/BoxExport.hx b/Sources/arm/ui/BoxExport.hx index 55b7afc5..87137c32 100644 --- a/Sources/arm/ui/BoxExport.hx +++ b/Sources/arm/ui/BoxExport.hx @@ -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);