Make AnimatableCurve::curve public (#15831)

# Objective

The other `Curve -> AnimationCurve` wrappers allow public access to the
inner curve, so this one should as well.

## Solution

Made the field public. Instances will still need to be constructed using
the (more ergonomic) `from_curve` method, which infers the phantom type
for the user.
This commit is contained in:
Matty 2024-10-10 14:51:17 -04:00 committed by GitHub
parent 922a25d295
commit a06802a66e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,10 @@ impl<T, C> AnimationCompatibleCurve<T> for C where C: Curve<T> + Debug + Clone +
#[derive(Reflect, FromReflect)]
#[reflect(from_reflect = false)]
pub struct AnimatableCurve<P, C> {
curve: C,
/// The inner [curve] whose values are used to animate the property.
///
/// [curve]: Curve
pub curve: C,
#[reflect(ignore)]
_phantom: PhantomData<P>,
}