summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotor.cpp')
-rw-r--r--rotord/src/rotor.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp
index 0bb9341..9d76626 100644
--- a/rotord/src/rotor.cpp
+++ b/rotord/src/rotor.cpp
@@ -78,6 +78,12 @@ Node_factory::Node_factory(){
add_type("video_feedback",new Video_feedback(),category["FX"]);
}
+float Signal_input::get_time_used(){
+ if (connection){
+ return ((Signal_node*)connection)->get_time_used();
+ }
+ return 0.0f;
+}
bool Signal_input::connect(Node* source) {
connection=dynamic_cast<Signal_node*>(source);
if (connection) return true;
@@ -89,6 +95,12 @@ float Signal_input::get(const Time_spec& time){ //gets input and updates variabl
}
else return 0.0f;
}
+float Image_input::get_time_used(){
+ if (connection){
+ return ((Image_node*)connection)->get_time_used();
+ }
+ return 0.0f;
+}
bool Image_input::connect(Node* source) {
connection=dynamic_cast<Image_node*>(source);
if (connection) return true;