File tree 1 file changed +2
-2
lines changed
crates/bevy_ecs/src/reflect 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ impl<'w> EntityWorldMut<'w> {
227
227
///
228
228
/// Prefer to use the typed [`EntityWorldMut::insert`] if possible. Adding a reflected component
229
229
/// is much slower.
230
- pub fn insert_reflect ( & mut self , component : Box < dyn PartialReflect > ) -> & mut Self {
230
+ pub fn insert_reflect ( & mut self , component : Box < dyn PartialReflect + Send + Sync > ) -> & mut Self {
231
231
self . assert_not_despawned ( ) ;
232
232
let entity_id = self . id ( ) ;
233
233
self . world_scope ( |world| {
@@ -255,7 +255,7 @@ impl<'w> EntityWorldMut<'w> {
255
255
/// - If the given [`Resource`] is not present in the [`World`].
256
256
pub fn insert_reflect_with_registry < T : Resource + AsRef < TypeRegistry > > (
257
257
& mut self ,
258
- component : Box < dyn PartialReflect > ,
258
+ component : Box < dyn PartialReflect + Send + Sync > ,
259
259
) -> & mut Self {
260
260
self . assert_not_despawned ( ) ;
261
261
let entity_id = self . id ( ) ;
You can’t perform that action at this time.
0 commit comments