mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Improve history states (#932)
* Add some more history states * Fix undo whilst drawing * Paste image history * Toggle output and preview history * Code review nits * Remove extra '{' * Fix typo * Fix about.toml Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
6e142627a3
commit
2bcc3d3baf
16 changed files with 282 additions and 190 deletions
|
@ -59,7 +59,7 @@ pub mod dynamic {
|
|||
alloc::boxed::Box::new($node.eval(($(*dyn_any::downcast::<$t>($arg).unwrap()),*)) ) as Dynamic
|
||||
}
|
||||
)else*
|
||||
else{
|
||||
else {
|
||||
panic!("Unhandled type"); // TODO: Exit neatly (although this should probably not happen)
|
||||
}
|
||||
};
|
||||
|
|
|
@ -12,7 +12,7 @@ pub fn node_fn(attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||
|
||||
// Extract primary input as first argument
|
||||
let primary_input = function_inputs.next().expect("Primary input required - set to `()` if not needed.");
|
||||
let Pat::Ident(PatIdent{ident: primary_input_ident,..} ) =&*primary_input.pat else{
|
||||
let Pat::Ident(PatIdent{ident: primary_input_ident,..} ) =&*primary_input.pat else {
|
||||
panic!("Expected ident as primary input.");
|
||||
};
|
||||
let primary_input_ty = &primary_input.ty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue