Skip to content

Commit 46e6155

Browse files
committed
Stop inserting RelationshipTarget on SpawnRelatedBundle
1 parent 4e694ae commit 46e6155

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/bevy_ecs/src/spawn.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ unsafe impl<R: Relationship, L: SpawnableList<R> + Send + Sync + 'static> Bundle
187187
for SpawnRelatedBundle<R, L>
188188
{
189189
fn component_ids(
190-
components: &mut crate::component::ComponentsRegistrator,
191-
ids: &mut impl FnMut(crate::component::ComponentId),
190+
_components: &mut crate::component::ComponentsRegistrator,
191+
_ids: &mut impl FnMut(crate::component::ComponentId),
192192
) {
193-
<R::RelationshipTarget as Bundle>::component_ids(components, ids);
193+
// <R::RelationshipTarget as Bundle>::component_ids(components, ids);
194194
}
195195

196196
fn get_component_ids(
197-
components: &crate::component::Components,
198-
ids: &mut impl FnMut(Option<crate::component::ComponentId>),
197+
_components: &crate::component::Components,
198+
_ids: &mut impl FnMut(Option<crate::component::ComponentId>),
199199
) {
200-
<R::RelationshipTarget as Bundle>::get_component_ids(components, ids);
200+
// <R::RelationshipTarget as Bundle>::get_component_ids(components, ids);
201201
}
202202

203203
fn register_required_components(
@@ -215,10 +215,10 @@ impl<R: Relationship, L: SpawnableList<R>> DynamicBundle for SpawnRelatedBundle<
215215

216216
fn get_components(
217217
self,
218-
func: &mut impl FnMut(crate::component::StorageType, bevy_ptr::OwningPtr<'_>),
218+
_func: &mut impl FnMut(crate::component::StorageType, bevy_ptr::OwningPtr<'_>),
219219
) -> Self::Effect {
220-
<R::RelationshipTarget as RelationshipTarget>::with_capacity(self.list.size_hint())
221-
.get_components(func);
220+
// <R::RelationshipTarget as RelationshipTarget>::with_capacity(self.list.size_hint())
221+
// .get_components(func);
222222
self
223223
}
224224
}

0 commit comments

Comments
 (0)