From 91b08f4b4ff6308f86eb16c32f94e9b981c20cc3 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Tue, 7 Oct 2025 00:00:27 -0700 Subject: [PATCH] Add tooltip documentation for animation-focused nodes (#3267) --- node-graph/gcore/src/animation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node-graph/gcore/src/animation.rs b/node-graph/gcore/src/animation.rs index 1b200f97..a3c099b8 100644 --- a/node-graph/gcore/src/animation.rs +++ b/node-graph/gcore/src/animation.rs @@ -20,6 +20,7 @@ pub enum AnimationTimeMode { FrameNumber, } +/// Produces a chosen representation of the current real time and date (in UTC) based on the system clock. #[node_macro::node(category("Animation"))] fn real_time(ctx: impl Ctx + ExtractRealTime, _primary: (), mode: RealTimeMode) -> f64 { let real_time = ctx.try_real_time().unwrap_or_default(); @@ -35,6 +36,7 @@ fn real_time(ctx: impl Ctx + ExtractRealTime, _primary: (), mode: RealTimeMode) } } +/// Produces the time, in seconds on the timeline, since the beginning of animation playback. #[node_macro::node(category("Animation"))] fn animation_time(ctx: impl Ctx + ExtractAnimationTime) -> f64 { ctx.try_animation_time().unwrap_or_default()