Experimental animation support (#2443)

* Implement experimental time routing to the node graph

* Allow toggling live preview with SHIFT + SPACE

* Add animation message handler

* Fix hotkeys

* Fix milisecond node

* Adevertize set frame index action

* Fix frame index

* Fix year calculation

* Add comment for why month and day are not exposed

* Combine animation nodes and fix animation time implementation

* Fix animation time interaction with playback

* Add set animation time mode message

* Captalize UTC

* Fix compiling

* Fix crash and add text nodes

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Dennis Kobert
2025-03-19 09:19:49 +01:00
committed by GitHub
parent b98711dbdb
commit 44694ff8d6
31 changed files with 428 additions and 62 deletions

View File

@@ -182,6 +182,7 @@ tagged_value! {
NodePath(Vec<NodeId>),
VecDVec2(Vec<DVec2>),
RedGreenBlue(graphene_core::raster::RedGreenBlue),
RealTimeMode(graphene_core::animation::RealTimeMode),
RedGreenBlueAlpha(graphene_core::raster::RedGreenBlueAlpha),
NoiseType(graphene_core::raster::NoiseType),
FractalType(graphene_core::raster::FractalType),

View File

@@ -559,12 +559,10 @@ impl core::fmt::Debug for GraphErrorType {
let inputs = inputs.replace("Option<Arc<OwnedContextImpl>>", "Context");
write!(
f,
"This node isn't compatible with the com-\n\
bination of types for the data it is given:\n\
"This node isn't compatible with the combination of types for the data it is given:\n\
{inputs}\n\
\n\
Each invalid input should be replaced by\n\
data with one of these supported types:\n\
Each invalid input should be replaced by data with one of these supported types:\n\
{}",
errors.join("\n")
)