Insert primitives associated with views from a previous scene

This commit is contained in:
Antonio Scandurra 2024-01-10 10:50:16 +01:00
parent 0c6d107740
commit 881c532256
5 changed files with 164 additions and 108 deletions

View file

@ -231,7 +231,7 @@ impl AnyView {
cx.with_absolute_element_offset(origin, |cx| {
let (layout_id, mut rendered_element) = (self.request_layout)(self, cx);
cx.compute_layout(layout_id, available_space);
rendered_element.paint(cx);
cx.with_view_id(self.entity_id(), |cx| rendered_element.paint(cx));
})
}
}