mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Fix the Path tool's smooth/sharp buttons (#1439)
* Fix select tool smooth button * Nit * Fix behavior when zero points are selected but the shape is active --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
c4bea2b400
commit
54745e210a
4 changed files with 58 additions and 52 deletions
|
@ -106,7 +106,7 @@ impl DocumentNode {
|
|||
NodeInput::Inline(inline) => (ProtoNodeInput::None, ConstructionArgs::Inline(inline)),
|
||||
}
|
||||
};
|
||||
assert!(!self.inputs.iter().any(|input| matches!(input, NodeInput::Network(_))), "recieved non resolved parameter");
|
||||
assert!(!self.inputs.iter().any(|input| matches!(input, NodeInput::Network(_))), "received non resolved parameter");
|
||||
assert!(
|
||||
!self.inputs.iter().any(|input| matches!(input, NodeInput::Value { .. })),
|
||||
"received value as parameter. inputs: {:#?}, construction_args: {:#?}",
|
||||
|
@ -115,7 +115,7 @@ impl DocumentNode {
|
|||
);
|
||||
|
||||
// If we have one parameter of the type inline, set it as the construction args
|
||||
if let &[NodeInput::Inline(ref inline)] = &self.inputs[..] {
|
||||
if let &[NodeInput::Inline(ref inline)] = self.inputs.as_slice() {
|
||||
args = ConstructionArgs::Inline(inline.clone());
|
||||
}
|
||||
if let ConstructionArgs::Nodes(nodes) = &mut args {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue