feat(materials): free rotate session overlays and show save progress

Match NPC drag-to-rotate on the material frame during playback, and change the add/edit Save button to Saving… while import runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-21 14:56:42 +08:00
parent 0cab7ce7ca
commit c1c332364c
8 changed files with 238 additions and 67 deletions
+6 -1
View File
@@ -90,7 +90,12 @@ export function MaterialsApp() {
onSelect={onSelect}
activeMaterialId={activeId}
onTileActivate={(id) => {
void overlayApi.dispatch({ kind: 'toggle', materialId: id });
const mat = materials.find((m) => m.id === id);
void overlayApi.dispatch({
kind: 'toggle',
materialId: id,
rotationDeg: mat?.rotationDeg ?? 0,
});
}}
toolbar={
<>