Skip to content

Commit 03ffe31

Browse files
committed
provide GizmoBuilder2d::immediate method
1 parent 7b2f4c1 commit 03ffe31

File tree

1 file changed

+3
-0
lines changed
  • crates/bevy_gizmos/src/primitives

1 file changed

+3
-0
lines changed

crates/bevy_gizmos/src/primitives/dim2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ where
108108
pub fn new(gizmos: &'builder mut GizmoBuffer<Config, Clear>, data: Blueprint) -> Self {
109109
Self { gizmos, data }
110110
}
111+
112+
/// Consume the builder, which will immediately drop it, running the [`GizmoBlueprint2d::build_2d`] method.
113+
pub fn immediate(self) {}
111114
}
112115

113116
impl<'builder, Blueprint, Config, Clear> core::ops::Deref

0 commit comments

Comments
 (0)