diff options
| -rw-r--r-- | rotord/src/graph.cpp | 2 | ||||
| -rw-r--r-- | rotord/src/rotor.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 6409ff6..ebfcece 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -344,7 +344,7 @@ bool Graph::parseJson(string &data,string &media_path){ } attr->init(vals); } - node->init_attribute(jnodes[i]["attributes"][m]["name"].asString()); //hook for attribute initialisers + node->init_attribute(attribute); //cerr << "Rotor: setting attribute '"<<attribute<<"' of "<<nodeID<<" type "<<attr->type<<" to "<<val<<endl; cerr << "Rotor: setting attribute '"<<attribute<<"' of "<<nodeID<<" type "<<attr->type<<" to "<<val<<endl; diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index eb3fbc8..a54fedd 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -561,6 +561,7 @@ namespace Rotor { Video_loader(){ create_attribute("filename","name of video file to load","File name",""); create_attribute("media_id","media_id","media_id","media_id"); //for rotorW + create_attribute("media_path","media_path","media_path","media_path"); //for rotorW title="Video loader"; description="Loads a video file"; UID="5b64b8ca-2d0a-11e3-92ed-4b7420b40040"; |
