Add preview and disable buttons for nodes (#905)

* Add preview and disable button

* Fix tests

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2022-12-25 02:28:18 -08:00
committed by Keavon Chambers
co-authored by Keavon Chambers
parent 6535ffeeb6
commit 01931939ff
10 changed files with 196 additions and 49 deletions
@@ -158,6 +158,7 @@ impl Fsm for ImaginateToolFsmState {
)]
.into_iter()
.collect(),
..Default::default()
};
let mut imaginate_inputs: Vec<NodeInput> = imaginate_node_type.inputs.iter().map(|input| input.default.clone()).collect();
imaginate_inputs[0] = NodeInput::Node(0);
@@ -197,6 +198,7 @@ impl Fsm for ImaginateToolFsmState {
]
.into_iter()
.collect(),
..Default::default()
};
responses.push_back(
@@ -163,6 +163,7 @@ impl Fsm for NodeGraphToolFsmState {
]
.into_iter()
.collect(),
..Default::default()
};
responses.push_back(