From 6d5ef1f8ed4c97814718dead6e6949704217a66d Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 7 Nov 2013 20:33:53 +0000 Subject: loader wrangling --- rotord/src/graph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rotord/src/graph.cpp') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 9544446..6409ff6 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -333,7 +333,7 @@ bool Graph::parseJson(string &data,string &media_path){ } if (attr->type=="string") { val=jnodes[i]["attributes"][m]["value"].asString(); - attr->value=val; + attr->init(val); } if (attr->type=="array"){ std::vector vals; @@ -344,6 +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 //cerr << "Rotor: setting attribute '"<type<<" to "<type<<" to "<