From 1af93fbfe4c8cfa214331d2d96327637ffe749bf Mon Sep 17 00:00:00 2001 From: Comment Date: Fri, 16 Aug 2013 00:56:32 +0100 Subject: adding render log --- rotord/src/rotor.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 937a884..1f345d1 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -123,6 +123,9 @@ namespace Rotor { class Parameter: public Signal_input{ public: virtual ~Parameter(){}; + void init(const float &_val){ + value=_val; + } Parameter(const string &_type,const string &_desc,const string &_title,float _value,float _min,float _max,Node* _connect): Signal_input(_desc,_title,_connect),value(_value),min(_min),max(_max),type(_type){}; float value,min,max; float get(const Time_spec& time); @@ -182,6 +185,11 @@ namespace Rotor { attributes[a.first]->init(find_setting(settings,a.first,"")); } } + for (auto p: parameters){ + if (find_setting(settings,p.first,"")!="") { + parameters[p.first]->init(find_setting(settings,p.first,0)); + } + } } void update(const Time_spec &time){ for (auto p: parameters){ -- cgit v1.2.3