File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
crates/bevy_editor_pls_default_windows/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use crate::hierarchy::{HideInEditor, HierarchyWindow};
20
20
21
21
use self :: camera_3d_panorbit:: PanOrbitCamera ;
22
22
23
- pub const EDITOR_RENDER_LAYER : u8 = 19 ;
23
+ pub const EDITOR_RENDER_LAYER : usize = 19 ;
24
24
25
25
// Present on all editor cameras
26
26
#[ derive( Component ) ]
@@ -234,7 +234,7 @@ fn spawn_editor_cameras(mut commands: Commands, editor: Res<Editor>) {
234
234
Name :: new ( "Editor Camera 3D Free" ) ,
235
235
NotInScene ,
236
236
GizmoCamera ,
237
- render_layers,
237
+ render_layers. clone ( ) ,
238
238
) ) ;
239
239
240
240
commands. spawn ( (
@@ -257,7 +257,7 @@ fn spawn_editor_cameras(mut commands: Commands, editor: Res<Editor>) {
257
257
Name :: new ( "Editor Camera 3D Pan/Orbit" ) ,
258
258
NotInScene ,
259
259
GizmoCamera ,
260
- render_layers,
260
+ render_layers. clone ( ) ,
261
261
) ) ;
262
262
263
263
commands. spawn ( (
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ fn add_gizmo_markers(
191
191
. entity ( entity)
192
192
. insert ( HasGizmoMarker )
193
193
. with_children ( |commands| {
194
- commands. spawn ( ( f ( ) , render_layers, Name :: new ( name) ) ) ;
194
+ commands. spawn ( ( f ( ) , render_layers. clone ( ) , Name :: new ( name) ) ) ;
195
195
} ) ;
196
196
}
197
197
}
@@ -231,7 +231,7 @@ fn add_gizmo_markers(
231
231
material : gizmo_marker_meshes. camera_material . clone_weak ( ) ,
232
232
..default ( )
233
233
} ,
234
- render_layers,
234
+ render_layers. clone ( ) ,
235
235
Name :: new ( "Camera Gizmo" ) ,
236
236
) ) ;
237
237
} ) ;
You can’t perform that action at this time.
0 commit comments