Skip to content

Commit bd3b23e

Browse files
authored
Rename PanCam.enable to enabled (#21568)
I noticed in #21520 that it used `enable` but `FreeCamState` uses `enabled` (as does all other Bevy code). **Testing** CI
1 parent ed85d9b commit bd3b23e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_camera_controller/src/pan_cam.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Plugin for PanCamPlugin {
3939
#[derive(Component)]
4040
pub struct PanCam {
4141
/// Enables this [`PanCam`] when `true`.
42-
pub enable: bool,
42+
pub enabled: bool,
4343
/// Current zoom level (factor applied to camera scale).
4444
pub zoom_factor: f32,
4545
/// Minimum allowed zoom level.
@@ -90,7 +90,7 @@ impl Default for PanCam {
9090
/// or modifying the default instance.
9191
fn default() -> Self {
9292
Self {
93-
enable: true,
93+
enabled: true,
9494
zoom_factor: 1.0,
9595
min_zoom: 0.1,
9696
max_zoom: 5.0,
@@ -157,7 +157,7 @@ fn run_pancam_controller(
157157
return;
158158
};
159159

160-
if !controller.enable {
160+
if !controller.enabled {
161161
return;
162162
}
163163

0 commit comments

Comments
 (0)