Skip to content

Commit

Permalink
Fix arrows methof
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceeri committed Mar 11, 2024
1 parent 99bdbe7 commit 027ae0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion crates/bevy_gizmos/src/arrows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ where
}
}

impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> {
impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear>
where
Config: GizmoConfigGroup,
Clear: 'static + Send + Sync,
{
/// Draw a set of axes local to the given transform (`transform`), with length scaled by a factor
/// of `base_length`.
///
Expand Down
5 changes: 3 additions & 2 deletions crates/bevy_gizmos/src/gizmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ where
}
}

impl<'w, 's, T: GizmoConfigGroup, Clear> Gizmos<'w, 's, T, Clear>
impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear>
where
Config: GizmoConfigGroup,
Clear: 'static + Send + Sync,
{
/// Draw a line in 3D from `start` to `end`.
Expand Down Expand Up @@ -477,7 +478,7 @@ where
rotation: Quat,
radius: f32,
color: impl Into<Color>,
) -> SphereBuilder<'_, 'w, 's, T, Clear> {
) -> SphereBuilder<'_, 'w, 's, Config, Clear> {
SphereBuilder {
gizmos: self,
position,
Expand Down

0 comments on commit 027ae0a

Please sign in to comment.