Commit 4a21a77
committed
web: rebuild selectableLayers from scratch in layer onChange
The layerSelModel callback was add/delete-ing names incrementally, so
in multi-chiplet / multi-tech designs where the same layer name appears
in multiple subtrees the final state of app.selectableLayers depended
on traversal order — an unchecked M1 leaf could delete the name even
when another M1 leaf was still checked, dropping it from the wire
payload's selectable_layers.
Mirror the visibility callback's pattern: clear() the Set in place
(WebSocketTileLayer holds the reference) and re-add only checked
nodes' names so Set semantics handle duplicates correctly.
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent 1450298 commit 4a21a77
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
330 | 336 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 337 | + | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
0 commit comments