Skip to content

Commit 3e708bc

Browse files
committed
Fix arrows methof
1 parent d647f51 commit 3e708bc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

crates/bevy_gizmos/src/arrows.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ where
145145
}
146146
}
147147

148-
impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> {
148+
impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear>
149+
where
150+
Config: GizmoConfigGroup,
151+
Clear: 'static + Send + Sync,
152+
{
149153
/// Draw a set of axes local to the given transform (`transform`), with length scaled by a factor
150154
/// of `base_length`.
151155
///

crates/bevy_gizmos/src/gizmos.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ where
260260
}
261261
}
262262

263-
impl<'w, 's, T: GizmoConfigGroup, Clear> Gizmos<'w, 's, T, Clear>
263+
impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear>
264264
where
265+
Config: GizmoConfigGroup,
265266
Clear: 'static + Send + Sync,
266267
{
267268
/// Draw a line in 3D from `start` to `end`.
@@ -477,7 +478,7 @@ where
477478
rotation: Quat,
478479
radius: f32,
479480
color: impl Into<Color>,
480-
) -> SphereBuilder<'_, 'w, 's, T, Clear> {
481+
) -> SphereBuilder<'_, 'w, 's, Config, Clear> {
481482
SphereBuilder {
482483
gizmos: self,
483484
position,

0 commit comments

Comments
 (0)