mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 21:38:13 +08:00
Rename several node graph structs/fields
This commit is contained in:
@@ -473,7 +473,7 @@ impl MessageHandler<DocumentMessage, DocumentInputs<'_>> for DocumentMessageHand
|
||||
// Set a random seed input
|
||||
responses.add(NodeGraphMessage::SetInputValue {
|
||||
node_id: *imaginate_node.last().unwrap(),
|
||||
// Needs to match the index of the seed parameter in `pub const IMAGINATE_NODE: DocumentNodeBlueprint` in `document_node_type.rs`
|
||||
// Needs to match the index of the seed parameter in `pub const IMAGINATE_NODE: DocumentNodeDefinition` in `document_node_type.rs`
|
||||
input_index: 3,
|
||||
value: graph_craft::document::value::TaggedValue::F64(random_value),
|
||||
});
|
||||
|
||||
@@ -76,8 +76,8 @@ pub struct FrontendNode {
|
||||
#[serde(rename = "isLayer")]
|
||||
pub is_layer: bool,
|
||||
pub id: graph_craft::document::NodeId,
|
||||
pub alias: String,
|
||||
pub name: String,
|
||||
pub identifier: String,
|
||||
#[serde(rename = "primaryInput")]
|
||||
pub primary_input: Option<FrontendGraphInput>,
|
||||
#[serde(rename = "exposedInputs")]
|
||||
@@ -297,8 +297,8 @@ impl NodeGraphMessageHandler {
|
||||
nodes.push(FrontendNode {
|
||||
is_layer: node.is_layer(),
|
||||
id: *id,
|
||||
name: node.alias.clone(),
|
||||
identifier: node.name.clone(),
|
||||
alias: node.alias.clone(),
|
||||
name: node.name.clone(),
|
||||
primary_input,
|
||||
exposed_inputs,
|
||||
primary_output,
|
||||
|
||||
+284
-286
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user