mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Adds serde derives to CubicCurve behind feature flag
This commit is contained in:
parent
aaccbe88aa
commit
11500a3b6c
1 changed files with 5 additions and 0 deletions
|
@ -810,6 +810,11 @@ impl CubicSegment<Vec2> {
|
|||
/// [`CubicBezier`].
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "bevy_reflect", derive(Reflect), reflect(Debug))]
|
||||
#[cfg_attr(
|
||||
feature = "serialize",
|
||||
derive(serde::Serialize, serde::Deserialize),
|
||||
reflect(Serialize, Deserialize)
|
||||
)]
|
||||
pub struct CubicCurve<P: VectorSpace> {
|
||||
/// Segments of the curve
|
||||
pub segments: Vec<CubicSegment<P>>,
|
||||
|
|
Loading…
Reference in a new issue