mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Add upgrade script to convert "Spline" node to "Path" -> "Spline from Points" (#2274)
* write document upgrade code to transfrom Spline node into Path -> Spline from Points * fix only connecting to single output * shift position of newly inserted Path -> Spline from Points node * refactor * remove all old Spline node code * rename Spline from Points node to Spline * Code cleanup * Update the demo art to natively use the new Spline node --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
95bbc95606
commit
2d90bb0cbf
7 changed files with 87 additions and 40 deletions
|
@ -576,6 +576,13 @@ impl DocumentNodeImplementation {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_proto_node(&self) -> Option<&ProtoNodeIdentifier> {
|
||||
match self {
|
||||
DocumentNodeImplementation::ProtoNode(p) => Some(p),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub const fn proto(name: &'static str) -> Self {
|
||||
Self::ProtoNode(ProtoNodeIdentifier::new(name))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue