Skip to content

Commit 6b84d14

Browse files
committed
Allow deprecation warnings for ui
1 parent ce71af9 commit 6b84d14

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

crates/bevy_animation_graph_editor/src/ui/core.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ impl UiState {
142142
}
143143

144144
fn menu_bar(ctx: &mut egui::Context, command_queue: &mut CommandQueue) {
145+
#[allow(deprecated)]
145146
egui::Panel::top("Application menu bar").show(ctx, |ui| {
146147
egui::MenuBar::new().ui(ui, |ui| {
147148
ui.menu_button("Assets", |ui| {
@@ -224,6 +225,7 @@ fn view_selection_bar(
224225
ctx: &mut egui::Context,
225226
ui_state: &UiState,
226227
) -> Option<ViewAction> {
228+
#[allow(deprecated)]
227229
egui::Panel::top("View selector")
228230
.show(ctx, |ui| {
229231
ui.horizontal(|ui| {

crates/bevy_animation_graph_editor/src/ui/native_views.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ impl EditorViewUiState {
126126
pub fn ui(&mut self, ctx: &mut egui::Context, world: &mut World, context: EditorViewContext) {
127127
let mut tab_viewer = TabViewer { world, context };
128128

129+
#[allow(deprecated)]
129130
DockArea::new(&mut self.dock_state)
130131
.style(egui_dock::Style::from_egui(ctx.global_style().as_ref()))
131132
.id(egui::Id::new(self.entity))

0 commit comments

Comments
 (0)