Pick procedural parts by clicking blocks in the studio scene view

Authors could not tell which part of a procedural object placed a block. A click on a block in the Procedural view now finds its part and chooses the node that draws it; choosing a node lights up its blocks and draws everything else faintly. SceneView gains hasParts and parts (BlockParts), served as scene-parts, aligned with the scene's blocks. No pins moved: the trace bakes with its own builder and generation is untouched, ProceduralObjectsGoldenTest digests are unchanged.

v3: ff0190384
This commit is contained in:
piexel committed 2026-11-10 12:44:27 +01:00
1 parent a8aaa3c3cf
commit 8136fa857f
24 files changed
+719 -48

No files matched your search

+4
View File
@@ -521,6 +521,10 @@ final class RuinScenes implements SceneView {
- A `SceneView` whose entries are baked from settings says so (`isBaked`) and times a bake on request (`timeBake`, a
`BakeRun` with a time per stage). One call is one run; the studio asks five times off the server's threads and keeps
the median.
- A `SceneView` whose entries are built from parts says so (`hasParts`) and tells which part placed each block of a
scene (`parts`, a `BlockParts` keyed by the block's position in the scene). Parts are numbered as `GraphNode.part()`
numbers the nodes that draw them, so the studio lights up a node's blocks when it is chosen and chooses a node when
its block is clicked.
- A view's id is the module's id or starts with it and `/`. A second view with an id already registered fails the
pack load, naming both modules.
- The studio asks from its own threads, several at once, for a world of the pack it shows. A view keeps what it