Skip to content

Commit 2b380ce

Browse files
authored
Fix more node migrations that lost their implementations (#2836)
* fix migration for `SampleGradientNode` * fix `BrushNode` unadjusted path * fix `NoisePatternNode` unadjusted path
1 parent c2f9a42 commit 2b380ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
778778
node_template: NodeTemplate {
779779
document_node: DocumentNode {
780780
manual_composition: Some(concrete!(Context)),
781-
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_std::raster::NoisePatternNode")),
781+
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_raster_nodes::std_nodes::NoisePatternNode")),
782782
inputs: vec![
783783
NodeInput::value(TaggedValue::None, false),
784784
NodeInput::value(TaggedValue::Bool(true), false),
@@ -1024,7 +1024,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
10241024
NodeInput::network(concrete!(BrushCache), 2),
10251025
],
10261026
manual_composition: Some(concrete!(Context)),
1027-
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_std::brush::BrushNode")),
1027+
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_brush::brush::BrushNode")),
10281028
..Default::default()
10291029
}]
10301030
.into_iter()

editor/src/messages/portfolio/document_migration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const REPLACEMENTS: &[(&str, &str)] = &[
6565
("graphene_core::ops::Vector2ValueNode", "graphene_math_nodes::CoordinateValueNode"),
6666
("graphene_core::ops::ColorValueNode", "graphene_math_nodes::ColorValueNode"),
6767
("graphene_core::ops::GradientValueNode", "graphene_math_nodes::GradientValueNode"),
68+
("graphene_core::ops::SampleGradientNode", "graphene_math_nodes::SampleGradientNode"),
6869
("graphene_core::ops::StringValueNode", "graphene_math_nodes::StringValueNode"),
6970
("graphene_core::ops::DotProductNode", "graphene_math_nodes::DotProductNode"),
7071
// debug

0 commit comments

Comments
 (0)