File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,15 @@ struct LineGizmoHandles {
242242/// Internally this pushes the parent default context into a swap buffer.
243243/// Gizmo contexts should be handled like a stack, so if you push a new context,
244244/// you must pop the context before the parent context ends.
245- pub fn start_gizmo_context < Config , Clear > ( world : & mut World )
245+ pub fn start_gizmo_context < Config , Clear > (
246+ mut swap : ResMut < GizmoStorage < Config , Swap < Clear > > > ,
247+ mut default : ResMut < GizmoStorage < Config , ( ) > > ,
248+ )
246249where
247250 Config : GizmoConfigGroup ,
248251 Clear : ' static + Send + Sync ,
249252{
250- world. resource_scope (
251- |world : & mut World , mut swap : Mut < GizmoStorage < Config , Swap < Clear > > > | {
252- let mut default = world. resource_mut :: < GizmoStorage < Config , ( ) > > ( ) ;
253- default. swap ( & mut * swap) ;
254- } ,
255- ) ;
253+ default. swap ( & mut * swap) ;
256254}
257255
258256/// End this gizmo clearing context.
You can’t perform that action at this time.
0 commit comments