summaryrefslogtreecommitdiff
path: root/rotord/src/graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.cpp')
-rw-r--r--rotord/src/graph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp
index 9f90486..0c47c78 100644
--- a/rotord/src/graph.cpp
+++ b/rotord/src/graph.cpp
@@ -407,6 +407,7 @@ bool Graph::parseJson(string &data,string &media_path){
string val=jnodes[i]["attributes"][m]["value"].asString();
if (val!=nodes[nodeID]->attributes.find(attribute)->second->value){
nodes[nodeID]->attributes.find(attribute)->second->value=val;
+ nodes[nodeID]->init_attribute(attribute);
cerr << "Rotor: set attribute '"<<attribute<<"' of "<<nodeID<<" to "<<val<<endl;
}
nodes[nodeID]->attributes.find(attribute)->second->value=val;