Upgrade to Bevy 0.19 and harden editor workflows
CI / Format, lint, test, build (push) Has been cancelled
CI / Format, lint, test, build (push) Has been cancelled
This commit is contained in:
1 parent
3f85d25cc7
commit
b5e561904c
204 files changed
+6972
-29907
No files matched your search
@@ -28,7 +28,7 @@ pub fn spawn_sun(
|
||||
ProjectSun,
|
||||
DirectionalLight {
|
||||
illuminance: rendering.sun_illuminance,
|
||||
shadows_enabled: !has_scene_sun_override(&scene_suns),
|
||||
shadow_maps_enabled: !has_scene_sun_override(&scene_suns),
|
||||
..default()
|
||||
},
|
||||
Visibility::default(),
|
||||
@@ -44,7 +44,7 @@ pub fn sync_project_sun_visibility(
|
||||
) {
|
||||
let scene_override = has_scene_sun_override(&scene_suns);
|
||||
for (mut sun, mut visibility) in &mut project_suns {
|
||||
sun.shadows_enabled = !scene_override;
|
||||
sun.shadow_maps_enabled = !scene_override;
|
||||
*visibility = if scene_override {
|
||||
Visibility::Hidden
|
||||
} else {
|
||||
@@ -106,7 +106,7 @@ pub fn sync_project_sun_from_settings(
|
||||
let illuminance = settings.rendering.sun_illuminance;
|
||||
for (mut sun, mut visibility) in &mut project_suns {
|
||||
sun.illuminance = illuminance;
|
||||
sun.shadows_enabled = !scene_override;
|
||||
sun.shadow_maps_enabled = !scene_override;
|
||||
*visibility = if scene_override {
|
||||
Visibility::Hidden
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user