diff --git a/base/sources/iron.h b/base/sources/iron.h index 0a3f0985..19faa7fb 100644 --- a/base/sources/iron.h +++ b/base/sources/iron.h @@ -1305,7 +1305,7 @@ i32 iron_sys_command(string_t *cmd) { wchar_t comspec[MAX_PATH]; GetEnvironmentVariableW(L"ComSpec", comspec, MAX_PATH); wchar_t cmdline[2048]; - swprintf(cmdline, 2048, L"\"%s\" /c %s", comspec, wstr); + swprintf(cmdline, 2048, L"\"%s\" /c \"%s\"", comspec, wstr); STARTUPINFO si; memset(&si, 0, sizeof(si)); si.cb = sizeof(si); diff --git a/paint/sources/import_blend_mesh.ts b/paint/sources/import_blend_mesh.ts index 4b87331f..bdafa9c4 100644 --- a/paint/sources/import_blend_mesh.ts +++ b/paint/sources/import_blend_mesh.ts @@ -43,7 +43,11 @@ import bpy;\ bpy.ops.wm.obj_export(filepath='" + bpy_folder + string_replace_all(save, "\\", "/") + "',export_triangulated_mesh=True,export_materials=False,check_existing=False)"; + /// if arm_windows + let bl: string = "\"" + string_replace_all(config_raw.blender, "/", "\\") + "\""; + /// else let bl: string = string_replace_all(config_raw.blender, " ", "\\ "); + /// end iron_sys_command(bl + " \"" + path + "\" -b --python-expr \"" + py + "\""); import_obj_run(save, replace_existing); }