Skip to content

Commit

Permalink
Update docs for scaling_mode field of Orthographic projection (#9297)
Browse files Browse the repository at this point in the history
# Objective

This PR updates the name of the enum variant used in the docs for
`OrthographicProjection`.

## Solution

- Change the outdated 'WindowScale` to `WindowSize`.
  • Loading branch information
kyteware authored Jul 30, 2023
1 parent e6405bb commit 335109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/camera/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub struct OrthographicProjection {
pub viewport_origin: Vec2,
/// How the projection will scale when the viewport is resized.
///
/// Defaults to `ScalingMode::WindowScale(1.0)`
/// Defaults to `ScalingMode::WindowSize(1.0)`
pub scaling_mode: ScalingMode,
/// Scales the projection in world units.
///
Expand Down

0 comments on commit 335109f

Please sign in to comment.