We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb326c commit 8cd723bCopy full SHA for 8cd723b
node-graph/gcore/src/instances.rs
@@ -119,14 +119,13 @@ impl<T> Instances<T> {
119
}
120
121
122
-impl<T: Default + Hash + 'static> Default for Instances<T> {
+impl<T> Default for Instances<T> {
123
fn default() -> Self {
124
- use core::any::TypeId;
125
- if TypeId::of::<T>() != TypeId::of::<crate::vector::VectorData>() {
126
- // TODO: Remove the 'static trait bound when this special casing is removed by making all types return empty
127
- Self::empty()
128
- } else {
129
- Self::new(T::default())
+ Self {
+ instance: Vec::new(),
+ transform: Vec::new(),
+ alpha_blending: Vec::new(),
+ source_node_id: Vec::new(),
130
131
132
0 commit comments