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
chore(editor): the editor clears an asset field as its clear button does, and model_write's text says what its report holds - pins the editor at the commit that makes set_field store nothing as nothing
yhh3e0c90af7e80
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex eb4a39345..c161aa0c2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -36,6 +36,7 @@ published separately; it ships inside the editor.### Fixed+- **Clearing an asset field from automation clears it.** `set_field` on an asset slot stored whatever it was given as text: 0 became the path "0" and null the path "null". The scene kept it, the editor drew nothing there, and an export failed to find an asset called 0. Nothing, however it is said (null, 0, false, the empty string, or "null" and "0" from a transport that sends values as text), now stores what the inspector's clear button stores: 0 in a handle-valued slot and the empty string in a Spine skeleton or atlas, which are string fields. Both ask one function for it (`emptyAssetValue`). Any other number is refused, since it names nothing a caller could have meant. `model_write`'s text also says what its report holds, to read `triangles` every time, and that `material.texture` may name a recipe.- **A model's picture can be a recipe.** A model source's `material.texture` took a `.png`, `.jpg` or `.webp` and refused an `.esimage`, the recipe `image_write` answers as the picture's `ref`: a tree's branches named the pixels while the foliage material beside them named the layers, and a game shipped whichever was referenced. A recipe is now accepted there. Whether a path names a recipe is asked in one place, `sdk/src/asset/textureRecipePath.ts`, which reads nothing of the runtime: the registry that draws recipes, the packager deciding what ships and the model source's check each spelled the extension themselves.- **A model's report is its steps as written, and names a step that undoes a decimate.** `report.steps` of a baked model listed every plain step its repeats came to, by an index among those: a spruce of thirteen rows of branches reported a hundred and thirty-eight steps, most the same line, and none under the index `model_edit` takes. It is now one entry for each step as written, by that index, a repeat counted once with how many steps it `made`, and each entry says the `triangles` the mesh had after it. And a step that splits faces to carry its own detail (a stain by a pattern, a displace, a sculpt) after a `decimate` took the decimate's triangles back in silence: a rock thinned to 1100 came out at 214,534, under the 300,000 the report calls heavy, and a field of them would have been gigabytes. The report now warns of each such step, with what it was given, what it left and which decimate it undid, and says how to keep the detail (before the decimate, carried by `normalBake`) or bound it (`detail`). The test also notes what the advice costs: a pattern stained before a decimate leaves colour seams the decimate will not cross, so it is `normalBake`'s `color: true` that carries it.- **A playable's start-screen bar moves through the whole boot.** The bar's stages were weighed for a web page, most of whose start is fetching the engine. A playable has the engine inlined, so its bar stood at 82% within a second and crawled to 95% over the twenty-five that followed. A playable now weighs its own stages (the scene's is four fifths of the bar), and that stage is followed in three stretches: assets being read and made (eased by the clock, since nothing counts them), shaders compiled against the most seen compiling, and the world prepared against the most its makers said was left. For that, a hold given to `holdShaderWarmup` may answer a number (pages, cells) where it answered yes, and `warmShaders` passes the sum to `onProgress`; Terrain and Foliage count theirs. One lake scene's bar went from 18% to 95% over its 22 seconds, with one stretch of four seconds standing still. `attachSplash` takes the weights.diff --git a/desktop b/desktopindex afb7766ae..661a55345 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit afb7766ae47ffc0b706b201b310ae07e8746d5b5+Subproject commit 661a55345bf9ca984ed18ad1ba211c070ba87155diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex d24b8ce03..222dd97bb 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -4800,4 +4800,6 @@ export const NOTED = {{"note": "A model's report is its steps as written, and names a step that undoes a decimate."},"fix(modeling): a model's picture can be a recipe - material.texture took a .png, .jpg or .webp and refused the .esimage the picture was drawn from, so a model named pixels where the scene beside it named layers; a recipe is accepted, and whether a path names one is asked in one place (textureRecipePath) by the runtime, the packager and the model source":{"note": "A model's picture can be a recipe."},+ "fix(mcp): clearing an asset field from automation clears it - set_field turned 0 and null into the paths \"0\" and \"null\", which the scene kept and an export then could not find; nothing (null, 0, false, the empty string, or the words for it from a text transport) is what the inspector's clear button stores, by one function both ask, and a number that names nothing is refused":+ {"note": "Clearing an asset field from automation clears it."},};