Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9a60ec

Browse files
committed
removed egui_node_graph stuff
1 parent d6cc961 commit f9a60ec

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ syn = { version = "2.0.25", features = ["full", "extra-traits", "parsing", "visi
3232
quote = "1.0.29"
3333
proc-macro2 = "1.0.64"
3434
prettyplease = "0.2.10"
35-
egui_node_graph = { path = "./egui_node_graph/egui_node_graph", features = ["persistence"] }
3635
slotmap = "1.0.6"
3736
svg-to-egui = { version = "0.1.0", path = "../usvg-testing" }

src/project/mod.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ pub mod display;
2424
use display::ProjectViewType;
2525

2626
pub mod egui_helpers;
27-
pub mod node_graph;
28-
use node_graph::SystemEditorState;
2927

3028
mod system;
3129
use system::System;
@@ -58,7 +56,6 @@ pub struct Project {
5856
pub code_editor: CodeEditor,
5957
#[serde(skip)]
6058
terminal_buffer: String,
61-
graph_editor: SystemEditorState,
6259
#[serde(skip)]
6360
receiver: Option<std::sync::mpsc::Receiver<String>>,
6461
current_view: ProjectViewType,
@@ -118,19 +115,6 @@ impl Project {
118115
}
119116
}
120117
}
121-
// If we haven't returned, then display the board in the node graph
122-
let node_kind = board.clone();
123-
let user_state = &mut self.system;
124-
let new_node = self.graph_editor.graph.add_node(
125-
node_kind.node_graph_label(user_state),
126-
node_kind.user_data(user_state),
127-
|graph, node_id| node_kind.build_node(graph, user_state, node_id),
128-
);
129-
self.graph_editor.node_positions.insert(
130-
new_node,
131-
egui::Pos2::ZERO,
132-
);
133-
self.graph_editor.node_order.push(new_node);
134118
}
135119

136120
/// Populate the project board list via the app-wide 'known boards' list
@@ -181,12 +165,9 @@ impl Project {
181165
self.name = p.name;
182166
self.location = Some(project_directory.to_path_buf());
183167
self.system = p.system;
184-
self.graph_editor = p.graph_editor;
185168
self.current_view = p.current_view;
186169
// sync the assets with the global ones
187170
self.load_board_resources();
188-
self.sync_node_graph_with_project();
189-
self.sync_connections();
190171
Ok(())
191172
}
192173

0 commit comments

Comments
 (0)