mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
Build a gathered subject's copy plan on collapse and reject an empty carry
This commit is contained in:
@@ -295,6 +295,8 @@ pub(crate) fn layout_meta_tokens(node: &Node, element_spec: TokenStream2, core_t
|
||||
Some((index, levels)) => quote!(::core::option::Option::Some((#index, #levels))),
|
||||
None => quote!(::core::option::Option::None),
|
||||
};
|
||||
// A gathered subject's plan holds however the level moves; see `LayoutMeta::gathered`.
|
||||
let gathered = gathered_subject(node).is_some();
|
||||
quote! {
|
||||
#core_types::record::LayoutMeta {
|
||||
sources: ::std::vec![#(#sources),*],
|
||||
@@ -308,6 +310,7 @@ pub(crate) fn layout_meta_tokens(node: &Node, element_spec: TokenStream2, core_t
|
||||
removes: ::std::vec![#(#removes),*],
|
||||
level_delta: #level_delta,
|
||||
folded: #folded,
|
||||
gathered: #gathered,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user