Skip to content

Commit

Permalink
Feature flag testbed_3d code correctly (bevyengine#16866)
Browse files Browse the repository at this point in the history
# Objective

Rust-Analyzer was reporting problems with dead code in the 3d testbed
scene.

## Solution

These scenes don't work in CI on the Windows runner (because they're too
weak).

Mirror the feature flags from above onto the offending modules.

## Testing

RA no longer complains.
  • Loading branch information
alice-i-cecile authored and ecoskey committed Jan 6, 2025
1 parent 84a890c commit d43ce6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/testbed/3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ mod light {
}
}

#[cfg(not(all(feature = "bevy_ci_testing", target_os = "windows")))]
mod bloom {
use bevy::{
core_pipeline::{bloom::Bloom, tonemapping::Tonemapping},
Expand Down Expand Up @@ -191,6 +192,7 @@ mod bloom {
}
}

#[cfg(not(all(feature = "bevy_ci_testing", target_os = "windows")))]
mod gltf {
use bevy::prelude::*;

Expand Down

0 comments on commit d43ce6b

Please sign in to comment.