mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-08 00:05:00 +00:00
Fix more node migrations that lost their implementations (#2836)
* fix migration for `SampleGradientNode` * fix `BrushNode` unadjusted path * fix `NoisePatternNode` unadjusted path
This commit is contained in:
parent
c2f9a42a8e
commit
2b380cec3a
2 changed files with 3 additions and 2 deletions
|
@ -778,7 +778,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
|
||||||
node_template: NodeTemplate {
|
node_template: NodeTemplate {
|
||||||
document_node: DocumentNode {
|
document_node: DocumentNode {
|
||||||
manual_composition: Some(concrete!(Context)),
|
manual_composition: Some(concrete!(Context)),
|
||||||
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_std::raster::NoisePatternNode")),
|
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_raster_nodes::std_nodes::NoisePatternNode")),
|
||||||
inputs: vec![
|
inputs: vec![
|
||||||
NodeInput::value(TaggedValue::None, false),
|
NodeInput::value(TaggedValue::None, false),
|
||||||
NodeInput::value(TaggedValue::Bool(true), false),
|
NodeInput::value(TaggedValue::Bool(true), false),
|
||||||
|
@ -1024,7 +1024,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
|
||||||
NodeInput::network(concrete!(BrushCache), 2),
|
NodeInput::network(concrete!(BrushCache), 2),
|
||||||
],
|
],
|
||||||
manual_composition: Some(concrete!(Context)),
|
manual_composition: Some(concrete!(Context)),
|
||||||
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_std::brush::BrushNode")),
|
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_brush::brush::BrushNode")),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}]
|
}]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
|
@ -65,6 +65,7 @@ const REPLACEMENTS: &[(&str, &str)] = &[
|
||||||
("graphene_core::ops::Vector2ValueNode", "graphene_math_nodes::CoordinateValueNode"),
|
("graphene_core::ops::Vector2ValueNode", "graphene_math_nodes::CoordinateValueNode"),
|
||||||
("graphene_core::ops::ColorValueNode", "graphene_math_nodes::ColorValueNode"),
|
("graphene_core::ops::ColorValueNode", "graphene_math_nodes::ColorValueNode"),
|
||||||
("graphene_core::ops::GradientValueNode", "graphene_math_nodes::GradientValueNode"),
|
("graphene_core::ops::GradientValueNode", "graphene_math_nodes::GradientValueNode"),
|
||||||
|
("graphene_core::ops::SampleGradientNode", "graphene_math_nodes::SampleGradientNode"),
|
||||||
("graphene_core::ops::StringValueNode", "graphene_math_nodes::StringValueNode"),
|
("graphene_core::ops::StringValueNode", "graphene_math_nodes::StringValueNode"),
|
||||||
("graphene_core::ops::DotProductNode", "graphene_math_nodes::DotProductNode"),
|
("graphene_core::ops::DotProductNode", "graphene_math_nodes::DotProductNode"),
|
||||||
// debug
|
// debug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue