rename bevy_ui::node module so that bevy_ui::render::node isn't shadowed (#1464)

Previously the `mod node` shadowed the `pub use render::node`, and `CAMERA_UI`, `NODE` and `UI_PASS` constants couldn't be used.
This commit is contained in:
Jakob Hellermann 2021-02-22 04:33:33 +00:00
parent e76d6566d7
commit e5b0c65c86
2 changed files with 3 additions and 3 deletions

View file

@ -3,8 +3,8 @@ pub mod entity;
mod flex; mod flex;
mod focus; mod focus;
mod margins; mod margins;
mod node;
mod render; mod render;
mod ui_node;
pub mod update; pub mod update;
pub mod widget; pub mod widget;
@ -12,11 +12,11 @@ pub use anchors::*;
pub use flex::*; pub use flex::*;
pub use focus::*; pub use focus::*;
pub use margins::*; pub use margins::*;
pub use node::*;
pub use render::*; pub use render::*;
pub use ui_node::*;
pub mod prelude { pub mod prelude {
pub use crate::{entity::*, node::*, widget::Button, Anchors, Interaction, Margins}; pub use crate::{entity::*, ui_node::*, widget::Button, Anchors, Interaction, Margins};
} }
use bevy_app::prelude::*; use bevy_app::prelude::*;