Skip to content

Commit 8cd723b

Browse files
committed
Test 4
1 parent 1cb326c commit 8cd723b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

node-graph/gcore/src/instances.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,13 @@ impl<T> Instances<T> {
119119
}
120120
}
121121

122-
impl<T: Default + Hash + 'static> Default for Instances<T> {
122+
impl<T> Default for Instances<T> {
123123
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())
124+
Self {
125+
instance: Vec::new(),
126+
transform: Vec::new(),
127+
alpha_blending: Vec::new(),
128+
source_node_id: Vec::new(),
130129
}
131130
}
132131
}

0 commit comments

Comments
 (0)