mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 06:28:34 +00:00
Limit transmissive steps to 4, as there are only four transmissive objects
This commit is contained in:
parent
e911b582ec
commit
2ffc8713e7
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ fn example_control_system(
|
|||
camera_3d.transmissive_steps -= 1;
|
||||
}
|
||||
|
||||
if input.just_pressed(KeyCode::P) && camera_3d.transmissive_steps < 5 {
|
||||
if input.just_pressed(KeyCode::P) && camera_3d.transmissive_steps < 4 {
|
||||
camera_3d.transmissive_steps += 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue