Nodes embedded in >1 sublayout have wrong element in expression context
complete
Dominic Scheirlinck
Start at:
This is a sublayout, with U1, C1, C2
Then it's embedded once correctly at https://www.flux.ai/dominic-dev/eurorack-power-breakout-board?editor=pcb_2d
(ignore the duplicate designators, that's a separate issue)
But once it's embedded two layers deep, then: https://www.flux.ai/dominic-dev/eurorack-power-breakout-x2-sublayout-test?editor=pcb_2d
All
the text nodes within the sublayout receive as their element-in-context (when doing expression evaluation) the sublayout containing element
not the original element they were pointed at. For example, the text that is supposed to be associated with "C2" will show as "A1" (which is the designator of the sublayout C2 is contained within, but not C2 itself!)This is a more basic problem than just duplicate designators: the target of an expression (within a part) shouldn't change when that part is embedded
In short: the bug is that _everything_ in A1 here is labelled "A1": https://www.flux.ai/dominic-dev/eurorack-power-breakout-x2-sublayout-test?editor=pcb_2d
N
Nick Fields
complete
Status was just changed in error.
Gretel Bot
in main
This post was marked as
complete
Dominic Scheirlinck
in progress