Skip to content

Commit

Permalink
bevy_scene: Add missing registration for SmallVec<[Entity; 8]> (bev…
Browse files Browse the repository at this point in the history
…yengine#6578)

# Objective

> Part of bevyengine#6573

`Children` was not being properly deserialized in scenes. This was due to a missing registration on `SmallVec<[Entity; 8]>`, which is used by `Children`.

## Solution

Register `SmallVec<[Entity; 8]>`.

---

## Changelog

- Registered `SmallVec<[Entity; 8]>`
  • Loading branch information
MrGVSV authored and ItsDoot committed Feb 1, 2023
1 parent 429db0d commit fa3ffaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_hierarchy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl Plugin for HierarchyPlugin {
fn build(&self, app: &mut App) {
app.register_type::<Children>()
.register_type::<Parent>()
.register_type::<smallvec::SmallVec<[bevy_ecs::entity::Entity; 8]>>()
.add_event::<HierarchyEvent>();
}
}

0 comments on commit fa3ffaa

Please sign in to comment.