bevy/crates/bevy_ui/src
BigWingBeat 54aa45e62f
Fix bevy_ui compile error when bevy_picking feature is disabled (#15053)
# Objective

#14957 added the `pick_rounded_rect` function to `bevy_ui` in the
`picking_backend` module, which is gated behind the `bevy_picking`
feature. This function is used in that module, as well as in the `focus`
module. The latter usage is not gated behind the `bevy_picking` feature,
causing a compile error when the feature is disabled.

## Solution

Move the `pick_rounded_rect` function out of the `picking_backend`
module, as it does not depend on anything defined in that module. I put
it in `lib.rs` but it could reasonably be moved somewhere else instead.

## Testing

Encountered this compile error in a project and confirmed that this
patch fixes it.
2024-09-05 19:16:57 +00:00
..
layout Ignore clicks on uinodes outside of rounded corners (#14957) 2024-09-03 12:38:59 +00:00
render Node::is_empty (#15050) 2024-09-05 16:26:45 +00:00
widget Don't reallocate scale factors in measure_text_system (#14999) 2024-09-02 17:01:59 +00:00
accessibility.rs Return Results from Camera's world/viewport conversion methods (#14989) 2024-09-03 19:45:15 +00:00
focus.rs Fix bevy_ui compile error when bevy_picking feature is disabled (#15053) 2024-09-05 19:16:57 +00:00
geometry.rs Fix uses of "it's" vs "its". (#13033) 2024-04-19 18:17:31 +00:00
lib.rs Remove all existing system order ambiguities in DefaultPlugins (#15031) 2024-09-03 20:24:34 +00:00
measurement.rs Optimize UI text measurement (#15003) 2024-09-01 11:50:54 +00:00
node_bundles.rs Add BorderRadius field to ImageBundle (#14457) 2024-07-24 18:41:26 +00:00
picking_backend.rs Fix bevy_ui compile error when bevy_picking feature is disabled (#15053) 2024-09-05 19:16:57 +00:00
stack.rs Merge BuildWorldChildren and BuildChildren traits. (#14052) 2024-07-01 14:29:39 +00:00
ui_material.rs Fix incorrect link in UiMaterial documentation (#12361) 2024-03-07 22:09:57 +00:00
ui_node.rs Node::is_empty (#15050) 2024-09-05 16:26:45 +00:00
update.rs fix: use try_insert instead of insert in bevy_ui to prevent panics when despawning ui nodes (#13000) 2024-04-19 18:12:08 +00:00