provide access to signals in animation
@@ -283,6 +283,14 @@ impl AnimationSignal {
pub fn is_enabled(&self) -> bool {
self.enabled
}
+
+ pub fn id(&self) -> u64 {
+ self.id
+ }
+
+ pub fn time(&self) -> f32 {
+ self.time
+ }
}
impl Default for AnimationSignal {
@@ -555,6 +563,10 @@ impl Animation {
self.resource.clone()
}
+ pub fn signals(&self) -> &[AnimationSignal] {
+ &self.signals
+ }
+
pub fn retain_tracks<F>(&mut self, filter: F)
where
F: FnMut(&Track) -> bool,
