Fix scoped editor UI action state
This commit is contained in:
1 parent
4b33f32357
commit
9e23ae731f
9 files changed
+428
-114
No files matched your search
@@ -40,6 +40,7 @@ pub fn top_menu_bar(
|
||||
selected: &SelectedEntities,
|
||||
dock_state: &mut DockState<EditorTab>,
|
||||
panel_nodes: &mut PanelNodes,
|
||||
viewport_rect: egui::Rect,
|
||||
) {
|
||||
egui::Panel::top("editor_menu_bar").show_inside(root_ui, |ui| {
|
||||
egui::MenuBar::new().ui(ui, |ui| {
|
||||
@@ -209,7 +210,7 @@ pub fn top_menu_bar(
|
||||
("Create Link", NavigationActorType::Link),
|
||||
] {
|
||||
if menu_item(ui, label, None, true).clicked() {
|
||||
spawn_navigation_actor(world, actor_type);
|
||||
spawn_navigation_actor(world, actor_type, viewport_rect);
|
||||
ui.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user