Add colors to all nodes in a graph, even if disconnected, and properly display hidden network imports (#1921)

* Get output/input types by iterating to proto node. Fix types when undoing/redoing

* Remove unused code

* Fix types not updating when modified

* Improve code quality

* Improve proto node type lookup

* Nits

* Fix crash when adding Extract

---------

Co-authored-by: dennis@kobert.dev <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
adamgerhant
2024-08-10 15:27:15 -07:00
committed by GitHub
parent 1f278799d6
commit 60707c0369
6 changed files with 203 additions and 152 deletions

View File

@@ -140,6 +140,12 @@ pub enum Type {
Future(Box<Type>),
}
impl Default for Type {
fn default() -> Self {
concrete!(())
}
}
unsafe impl StaticType for Type {
type Static = Self;
}