Autosave: give each project its own copy

The copy was named after the project, whose name comes from the mesh file, so projects made from one mesh overwrote each other's autosave. It is now `<stem>-<suffix>.tcraft`: from the saved file and its path, or a suffix of its own while the project is unsaved. A project opened from its copy keeps writing to it.

Fixes #851
This commit is contained in:
Morion committed 2026-11-26 00:27:10 -05:00
1 parent d45bb2cad8
commit 23d3f9ae71
4 files changed
+232 -5

No files matched your search

+3
View File
@@ -278,6 +278,9 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
New project, Open, Recent projects, Open sample project); File › Close returns to that state.
- A **data folder** of your choice for autosaves, smart materials, presets, templates and UI
layouts, on any drive (Settings › General › Folders; `Documents/TextureCraft` by default).
- **Autosave**: each project keeps its own copy in the data folder's `autosave`, named
`<name>-<suffix>.tcraft` after its saved file (or, until it is saved, the project), so projects made from
one mesh never overwrite each other's copy.
- A **Settings window** (Edit › Settings) with General, Shortcuts and Libraries pages; changes
apply on OK and Cancel drops them. General holds the language (or the system's), the 3D view's
rotation, zoom and wheel speeds with inverse directions, GPU or CPU bake rays, resource limits