Skip to content

Commit b1d3155

Browse files
committed
fix errors after sync with main (types and imports)
1 parent 438eb0c commit b1d3155

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

crates/bevy_gizmos/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{self as bevy_gizmos};
44
pub use bevy_gizmos_macros::GizmoConfigGroup;
55

66
#[cfg(feature = "bevy_render")]
7-
use {crate::LineGizmo, bevy_asset::Handle, bevy_ecs::component::Component};
7+
use {crate::GizmoAsset, bevy_asset::Handle, bevy_ecs::component::Component};
88

99
use bevy_ecs::{reflect::ReflectResource, resource::Resource};
1010
use bevy_reflect::{std_traits::ReflectDefault, Reflect, TypePath};

crates/bevy_gizmos/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub mod grid;
4242
pub mod primitives;
4343
pub mod retained;
4444
pub mod rounded_box;
45-
//#[cfg(feature = "bevy_render")]
45+
#[cfg(feature = "bevy_render")]
4646
pub mod view;
4747

4848
#[cfg(all(feature = "bevy_pbr", feature = "bevy_render"))]
@@ -86,6 +86,7 @@ use bevy_ecs::{
8686
};
8787
use bevy_math::{Vec3, Vec4};
8888
use bevy_reflect::TypePath;
89+
#[cfg(feature = "bevy_render")]
8990
use view::OnlyViewLayout;
9091

9192
#[cfg(feature = "bevy_render")]
@@ -95,7 +96,6 @@ use crate::{config::ErasedGizmoConfigGroup, gizmos::GizmoBuffer};
9596

9697
#[cfg(feature = "bevy_render")]
9798
use {
98-
crate::retained::extract_linegizmos,
9999
bevy_ecs::{
100100
component::Component,
101101
entity::Entity,
@@ -645,9 +645,9 @@ impl<const I: usize, P: PhaseItem> RenderCommand<P> for SetLineGizmoBindGroup<I>
645645
}
646646

647647
#[cfg(feature = "bevy_render")]
648-
struct DrawLineGizmo;
648+
struct DrawLineGizmo<const STRIP: bool>;
649649
#[cfg(feature = "bevy_render")]
650-
impl<P: PhaseItem> RenderCommand<P> for DrawLineGizmo {
650+
impl<P: PhaseItem, const STRIP: bool> RenderCommand<P> for DrawLineGizmo<STRIP> {
651651
type Param = SRes<RenderAssets<GpuLineGizmo>>;
652652
type ViewQuery = ();
653653
type ItemQuery = Read<GizmoMeshConfig>;

crates/bevy_gizmos/src/view.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use bevy_ecs::{
22
component::Component,
33
entity::Entity,
4-
system::{lifetimeless::Read, Commands, Query, Res, Resource},
4+
resource::Resource,
5+
system::{lifetimeless::Read, Commands, Query, Res},
56
world::FromWorld,
67
};
78
use bevy_render::{

0 commit comments

Comments
 (0)