Skip to content

Commit c932565

Browse files
committed
feat(nodes/group-control): configure fade out time for group control
1 parent 894d486 commit c932565

File tree

4 files changed

+140
-39
lines changed

4 files changed

+140
-39
lines changed

crates/runtime/pipeline/node/src/context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use mizer_ports::port_types;
77
pub use mizer_ports::{PortId, PortValue};
88
use mizer_wgpu::TextureView;
99

10-
use crate::{PortMetadata, PreviewContext};
10+
use crate::{NodePath, PortMetadata, PreviewContext};
1111

1212
pub const SINGLE_HIGH: f64 = 1.0;
1313
pub const SINGLE_LOW: f64 = 0.0;
@@ -21,6 +21,8 @@ pub trait NodeContext: PreviewContext + Sized + Inject {
2121
fn clock_state(&self) -> ClockState;
2222
fn fps(&self) -> f64;
2323

24+
fn path(&self) -> &NodePath;
25+
2426
fn write_port<P: Into<PortId>, V: PortValue + 'static>(&self, port: P, value: V);
2527
fn clear_port<P: Into<PortId>, V: PortValue + 'static>(&self, port: P);
2628

0 commit comments

Comments
 (0)