summaryrefslogtreecommitdiff
path: root/rotord/src/graph.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-11-28 23:54:24 +0000
committerComment <tim@gray.(none)>2013-11-28 23:54:24 +0000
commit7962d0493767a30895898cf40585ca042bbf08c0 (patch)
treea2270e77050e7c08bba48cab6cf90c69585dad1c /rotord/src/graph.cpp
parent09a65304f32ca7b86e7710d689600f5c7afce578 (diff)
fixed signal colour
Diffstat (limited to 'rotord/src/graph.cpp')
-rw-r--r--rotord/src/graph.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp
index e9972f3..4039d4b 100644
--- a/rotord/src/graph.cpp
+++ b/rotord/src/graph.cpp
@@ -328,6 +328,11 @@ bool Graph::parseJson(string &data,string &media_path){
settings["type"]=jnodes[i]["type"].asString();
//attributes
settings["media_path"]=media_path;
+ for (uint32_t m=0;m<jnodes[i]["attributes"].size();m++) {
+ if (jnodes[i]["attributes"][m]["type"].asString()!="array") {
+ settings[jnodes[i]["attributes"][m]["name"].asString()]=jnodes[i]["attributes"][m]["value"].asString();
+ }
+ }
Node* node=factory.create(settings);
for (uint32_t m=0;m<jnodes[i]["attributes"].size();m++){
string attribute=jnodes[i]["attributes"][m]["name"].asString();