This commit is contained in:
JMS55 2023-12-15 17:42:22 -08:00
parent f668d43994
commit 11669f597b

View file

@ -45,9 +45,7 @@ pub fn apply_mutations(
}
Mutation::AssignId { path, id } => todo!(),
Mutation::CreatePlaceholder { id } => {
let entity = world
.spawn((NodeBundle::default(), BackgroundColor::default()))
.id();
let entity = world.spawn(NodeBundle::default()).id();
element_id_to_bevy_ui_entity.insert(id, entity);
bevy_ui_entity_to_element_id.insert(entity, id);
stack.push(entity);