fix(picking): Location is not a Component anymore. (#19306)
# Objective - Fixes #17390 ## Solution - Remove Component derive ## Testing - cargo clippy
This commit is contained in:
parent
2b59ab8e2d
commit
031fa25ff6
@ -205,8 +205,8 @@ impl PointerLocation {
|
||||
/// - a pointer is not associated with a [`Camera`] because multiple cameras can target the same
|
||||
/// render target. It is up to picking backends to associate a Pointer's `Location` with a
|
||||
/// specific `Camera`, if any.
|
||||
#[derive(Debug, Clone, Component, Reflect, PartialEq)]
|
||||
#[reflect(Component, Debug, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone, Reflect, PartialEq)]
|
||||
#[reflect(Debug, PartialEq, Clone)]
|
||||
pub struct Location {
|
||||
/// The [`NormalizedRenderTarget`] associated with the pointer, usually a window.
|
||||
pub target: NormalizedRenderTarget,
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Location is not a Component anymore
|
||||
pull_requests: [19306]
|
||||
---
|
||||
|
||||
`bevy_picking::Location` was erroneously made a `Component`. It is no longer one, `bevy_picking::PointerLocation` wraps a `Location` and is the intended usage pattern.
|
Loading…
Reference in New Issue
Block a user