-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add gizmos regression test and fix original bug
- Loading branch information
Showing
3 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! A test to confirm that `bevy` doesn't regress on gizmos | ||
//! This is run in CI. | ||
|
||
use bevy::prelude::*; | ||
|
||
/// A test to confirm that `bevy` doesn't regress on gizmos | ||
/// #14142 is the latest issue where this occurred | ||
pub fn main() { | ||
App::new() | ||
.add_plugins(DefaultPlugins) | ||
.add_systems(Update, |mut gizmos: Gizmos| { | ||
let rot = Quat::from_array([5.0, 0.0, 0.0, 0.0]); //.normalize(); | ||
gizmos.sphere(Vec3::ZERO, rot, 1.0, Color::srgb(1.0, 0.0, 0.0)); | ||
}) | ||
.run(); | ||
} |