Merge main at cce9ada while retaining the saved bake repairs and layout. Resolve docking, module, and viewport overlaps with the new Assets shelf and tool-availability behavior.
Preserve the shared-catalog integration and saved review repairs. Reject saved path commits during quick-mask editing, hide the unavailable 2D brush cursor, and reduce dirty-tile selection work. Keep the Selection test fixture in its own module.
Add file.changeMesh for trusted local callers while preserving layers, remembered mesh paths, imported images and bake resources. Retain unchanged-layout paint preservation, cache/cage invalidation and stale-bake cancellation safeguards.
The temporary Change mesh menu entry is removed. The Project Configuration 3D Mesh UI will follow separately.
Contributor: @vangel76.
Validated by fresh Ubuntu and Windows CI at the exact head-equivalent tree; QA confirmed the new dependency inputs and named backend/safety regressions.
Preserve filter lookahead alongside main image-cache invalidation and input
bounds. Move HeldFields into its own module and finish scoped cleanup.
Charge repeated USD path names before allocating retained strings.
Reuse the blur transpose-back buffer and release scattered texels before
allocating filter temporaries.
Validated compose/engine release tests, Clippy, layering, wasm and formatting.
Preserve main's decoder, atomic-save, material-payload, and USDC limits.
Bound material reads by the remaining payload budget and trim retained
buffers. Replace quadratic image-name searches with map lookups, and
cache validated linked-material maps before synchronization so they
are not decoded twice.
Add import/undo/redo and payload-boundary regressions, extract
ImageIdentity, remove the unchecked scratch example, and complete
scoped cleanup. Correct the integrated style guide's product name.
Validated 546 release tests, Clippy, layering, wasm, formatting, and
focused allocation and lifetime probes.
A stack with a neighbourhood filter (blur, high pass, bevel, glow...) made a
recomposite spread over frames many times slower than the same recomposite in
one call: every chunk filtered its own surroundings again, and on a machine
with many threads the filter's per-texel parallel steps cost more to hand out
than to run on a region of a few tiles.
- Neighbourhood filters split their per-texel work into tasks of at least
16384 texels. Each texel is computed on its own, so results do not change.
- Session::update_for tells the compositor which dirty tiles follow the chunk
in its block (up to 64). The compositor filters the chunk and those tiles at
once and keeps the fields for the composites that follow, compared by
everything the stack reads, and drops them at the end of the pass, after an
edit, and under a live stroke.
Results are identical to the one-call composite: tests cover cold, warm and
partly evicted hot-layer caches, an edit mid-pass and a live stroke.
perf::bench_sliced_filters_4k times both paths.
* fix(engine): reset paint target to content when undoing mask (#307)
* fix(engine): resolve mask_owner in after_history and clear below cache in test (#307)
* fix(engine): resolve resource stem and list available names in layer.add.image (#337)
Accept an unambiguous file stem in layer.add.image alongside the full resource name with extension. When the requested resource is not found, list the available resources or guide the user to resource.import.
* fix(engine): filter image lookup stems and hints to decoded images (#337)
* fix(engine): reject unparseable colour parameters with an error (#369)
When a colour parameter cannot be parsed, fail with an error describing the expected color format instead of silently falling back to defaults.
Update color_param to return an explicit error and propagate across commands that accept color values.
* fix(engine): validate f32 overflow, pre-parse state mutations, and keep UV pairs strict (#369)
- Global blur, balance and contrast on every generator (GeneratorGlobal).
The blur blurs only the generator's own value, up to a 64-texel radius
at 2K, weighted by mesh coverage; balance picks the input range that is
stretched to 0..1 and contrast narrows it; invert stays last.
- Output resolution (OutputResolution, ResolutionMode): Auto or UV tile,
Texture set or a custom size, times a factor from 1/8 to x8, never
coarser than one value per 64 texels. Below the UV tile's resolution
the generator is averaged over cells and read back bilinearly.
- Image inputs: each mesh map a generator reads can read an image, a
uniform value or an anchor point instead. Generator inputs count as
anchor and image readers (compositing order, paste, remove unused).
- Blur and resolution run as a neighbourhood stage of the mask, listed
the same way by every caller and only in masks.
- Commands: blur, balance, contrast, resolution, customResolution,
resolutionFactor on effect.add.generator / effect.set, and input with
inputImage / inputValue / inputAnchor / inputBaked on effect.set.
New fields are skipped when they hold their defaults and neutral settings
return the value untouched, so saved projects load, save and render as
before.
Above the bake bar, bake mode lists what would spoil the next bake of the included
texture sets: a UV layout overlapping by more than 1%, and under "By Mesh Name" the
low-poly parts no high-poly part matches and the high-poly parts that match no low-poly
part. The pairing comes from the bake's own name keys, now one helper the bake and the
list share.
High Poly Scene is a list with + and -, as in the reference. Without a high poly the
high-poly, Cage and Skew Correction controls show greyed instead of hidden, and a line
says why. Skew Correction applies only to a distance-based cage with Average Normals and
a separate high poly, in the panel and in the bake (a painted skew map no longer
changes other bakes).
Every overlay gets the reference's colour swatch and eyedropper: the high poly, its
matching error, the cage's surface and wireframe (separate, each with an opacity), the
missing seams and the project mesh. The panel opens as the reference's does at first
launch; its eye hides the baking meshes and greys their rows. Show for selected texture
set only filters the cage and the high poly; a hidden high poly leaves the GPU.
The UV seam overlay now marks the hard edges the UV layout does not split, on the low
poly and the cage, in the 3D and 2D views.
The project mesh can show the neutral material, picked in the 3D view's view menu:
colour, roughness, metallic, baked AO, an optional baked bent normal, and Quality as
importance-sampled reflections per pixel.
A path committed on a fill layer (its content, an effect in it or an
instance of it) or while the quick mask is edited is refused; paths already
saved in a fill layer stay editable through their sublayer. Edit and Invert
quick mask are enabled only while the quick mask is on, and turning it off
stops editing it.
Session::tool_usable answers per tool: brushes and Path act on paint layer
content, paint sublayers, masks and the quick mask while it is edited; fill
content, filters, generators, folders, instances and an empty selection take
none of them. Smudge and Clone can't paint mask values yet. Path also edits a
selected path sublayer, wherever it is. The color picker always acts; the
geometry mask needs a layer.
Applying a material filled the model in tile by tile, and each apply made the
next one slower. Now:
- a big recomposite first draws a coarse look of every tile (sampled texels
repeated across blocks), then refines to the exact result;
- layers hidden behind an opaque layer are skipped (not when anchors or height
masks are involved);
- compositing and upload budgets adapt: larger when idle, smaller while the
user is interacting, and uploads reserve time for conversion;
- no coarse pass during a live stroke or with neighbourhood filters;
- blending at full weight returns the blended value exactly.
Tests: coarse-then-exact, hidden-layer culling gives identical pixels, coarse
pass covers every tile, no coarse pass while a stroke is live.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merge upstream main into the branch. The streamed bake now returns the same Arc buffers it handed to the preview, and the document stores those, so a preview never holds a second copy of a map. A cancel leaves the set being baked as it was; sets that finished earlier stay applied.
Share visualization settings between scene shading and GPU sync, and use then_some for the conditional low-poly pass. Cover per-set distances, selected-set filtering, missing inputs and ownership with engine tests.