fixed incorrect message handling in collection property editor
@@ -89,6 +89,7 @@ impl Control for CollectionEditor {
));
}
} else if let Some(msg) = message.data::<CollectionEditorMessage>() {
+ if message.destination == self.handle {
match msg {
CollectionEditorMessage::Items(items) => {
let views = create_item_views(items, &mut ui.build_ctx(), self.layer_index);
@@ -113,6 +114,7 @@ impl Control for CollectionEditor {
}
}
}
+ }
fn preview_message(&self, ui: &UserInterface, message: &mut UiMessage) {
if let Some(ButtonMessage::Click) = message.data::<ButtonMessage>() {
