mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
Linking imported instances to their mains (and detaching an outer instance, or restoring a main) finds overrides by comparing each layer with its main layer, and compared values only. A layer bound to a variable its main layer doesn't bind, resolving to the main's colour, therefore wasn't an override. The next copy or edit of the main reset it to the main's unbound paint: in a file using a library, a button's icon lost the colour variable the library's button gave it, while the label next to it, whose main binds the variable, kept it. rebase_instance now adds the groups whose bindings differ from the main layer's (diff::rebound_groups), as record_overrides already did for a binding made in an instance. record_overrides no longer clears such an override when an edit sets the value back to the main's (hiding and showing the fill). Bindings are compared by what they bind, so `fill` and `fills/0/color` are one binding.