Skip to content

Commit 94d4a43

Browse files
committed
reflect ComputedCameraValues
1 parent 65abe44 commit 94d4a43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/bevy_camera/src/camera.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Default for SubCameraView {
158158
}
159159

160160
/// Information about the current [`RenderTarget`].
161-
#[derive(Debug, Clone)]
161+
#[derive(Debug, Reflect, Clone)]
162162
pub struct RenderTargetInfo {
163163
/// The physical size of this render target (in physical pixels, ignoring scale factor).
164164
pub physical_size: UVec2,
@@ -179,7 +179,7 @@ impl Default for RenderTargetInfo {
179179
}
180180

181181
/// Holds internally computed [`Camera`] values.
182-
#[derive(Default, Debug, Clone)]
182+
#[derive(Default, Debug, Reflect, Clone)]
183183
pub struct ComputedCameraValues {
184184
pub clip_from_view: Mat4,
185185
pub target_info: Option<RenderTargetInfo>,
@@ -355,7 +355,6 @@ pub struct Camera {
355355
/// camera will not be rendered.
356356
pub is_active: bool,
357357
/// Computed values for this camera, such as the projection matrix and the render target size.
358-
#[reflect(ignore, clone)]
359358
pub computed: ComputedCameraValues,
360359
// todo: reflect this when #6042 lands
361360
/// The [`CameraOutputMode`] for this camera.

0 commit comments

Comments
 (0)