A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(import-settings): types that share a schema can be edited together
esengine123a2520e9cf
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b78e54d22..8dcd75071 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -69,6 +69,21 @@ published separately; it ships inside the editor.### Added+- **Import settings are edited in batches.** Selecting several assets showed the+ primary one's inspector, so "make every sprite in this folder nearest-filtered"+ was one asset at a time. The Details panel now edits the whole asset selection+ through the same reflection sections a multi-entity selection uses: a field the+ selection disagrees on reads as mixed, typing one writes it to all of them, and+ Save writes a PATCH — only the keys touched — so settings nobody edited are not+ levelled onto each other. Assets of types that share one importer schema (a+ sprite and a texture) batch together; a selection spanning two schemas says so+ instead of offering fields half of it has no answer for. `ProjectStore+ .setImportSettingsMany` is the batch door — one rescan, one re-import pass —+ and `set_import_settings` / `select_asset` take an array of paths, so an agent+ can do the same in one call. Content-browser Reimport and Copy Path follow the+ selection too, the rule Delete already followed. New editor check+ `batch-import-settings`.+- **Gates hold up without the editor.** Nine gates whose subject IS the editordeclare `needs: 'editor'` and are named when skipped. Gates spanning both(`cycles`, `component-fields`, `import-settings`, `component-reference`,diff --git a/desktop b/desktopindex da7846c43..7b49b61d7 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit da7846c43cf4f77d28bdbc36a2f9996005c89ec7+Subproject commit 7b49b61d746b48ee9ade830bc8330c63ec5e4823diff --git a/pipeline/src/project/importSettings.ts b/pipeline/src/project/importSettings.tsindex d380006d6..190799c60 100644--- a/pipeline/src/project/importSettings.ts+++ b/pipeline/src/project/importSettings.ts@@ -198,6 +198,12 @@ export function importerDefaults(type: string): Record<string, unknown> {/** True when a type exposes editable import settings. */export const hasImporterSettings = (type: string): boolean => (IMPORTER_SCHEMAS[type]?.length ?? 0) > 0;+/** Whether two asset types are edited by the SAME settings — a sprite and a+ * texture are, so a selection spanning both is still one batch. Identity of the+ * spec array, not of the type name: the table above is what decides it. */+export const sharesImporterSchema = (a: string, b: string): boolean =>+ IMPORTER_SCHEMAS[a] !== undefined && IMPORTER_SCHEMAS[a] === IMPORTER_SCHEMAS[b];+/** The texture cook settings a platform may override: size cap + whether/how to* compress. sRGB is intrinsic to the asset's color rather than the target, so it* is not overridable. `enabled` is the per-platform switch — an override applies