File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
// FIXME(3492): remove once docs are ready
2
2
#![ allow( missing_docs) ]
3
3
#![ cfg_attr( docsrs, feature( doc_auto_cfg) ) ]
4
- #![ forbid( unsafe_code) ]
5
4
#![ doc(
6
5
html_logo_url = "https://bevyengine.org/assets/icon.png" ,
7
6
html_favicon_url = "https://bevyengine.org/assets/icon.png"
Original file line number Diff line number Diff line change @@ -1028,9 +1028,11 @@ impl PointLightAssignmentData {
1028
1028
1029
1029
// SAFETY: `PointLightAssignmentData` is only used in `assign_lights_to_clusters`, where it is not reused
1030
1030
// between system calls.
1031
+ #[ allow( unsafe_code) ]
1031
1032
unsafe impl Send for PointLightAssignmentData { }
1032
1033
// SAFETY: `PointLightAssignmentData` is only used in `assign_lights_to_clusters`, where it is not reused
1033
1034
// between system calls.
1035
+ #[ allow( unsafe_code) ]
1034
1036
unsafe impl Sync for PointLightAssignmentData { }
1035
1037
1036
1038
#[ derive( Resource , Default ) ]
@@ -1428,6 +1430,7 @@ pub(crate) fn assign_lights_to_clusters(
1428
1430
// check if the light groups overlap the view groups
1429
1431
// SAFETY: `lights` is cleared at the start of this system call, and is populated from
1430
1432
// immutable queries.
1433
+ #[ allow( unsafe_code) ]
1431
1434
let light_renderlayers = unsafe { light. render_layers . get ( ) } ;
1432
1435
if !view_layer. intersects ( light_renderlayers) {
1433
1436
continue ;
@@ -2152,6 +2155,7 @@ fn derive_render_layers_ptr_for_light(
2152
2155
) -> RenderLayersPtr {
2153
2156
let render_layers = derive_render_layers_ptr ( maybe_inherited, maybe_layers) ;
2154
2157
// SAFETY: The pointer points to references within the lifetime of this function.
2158
+ #[ allow( unsafe_code) ]
2155
2159
let len = unsafe { render_layers. get ( ) . len ( ) } ;
2156
2160
if len > 1 {
2157
2161
warn_once ! (
Original file line number Diff line number Diff line change 1
1
use std:: ops:: Range ;
2
2
3
3
use super :: { UiBatch , UiImageBindGroups , UiMeta } ;
4
- use crate :: DefaultCameraLayer ;
4
+ use crate :: DefaultCameraView ;
5
5
use bevy_ecs:: {
6
6
prelude:: * ,
7
7
system:: { lifetimeless:: * , SystemParamItem } ,
@@ -26,7 +26,7 @@ pub struct UiPassNode {
26
26
) ,
27
27
With < ExtractedView > ,
28
28
> ,
29
- default_camera_view_query : QueryState < & ' static DefaultCameraLayer > ,
29
+ default_camera_view_query : QueryState < & ' static DefaultCameraView > ,
30
30
}
31
31
32
32
impl UiPassNode {
You can’t perform that action at this time.
0 commit comments