From ab6e18cbb962c4ecc5a5099b1e3f1fff8d227ff6 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 8 Nov 2013 09:59:43 +0000 Subject: fix media path with json loader --- rotord/src/graph.cpp | 4 +++- rotord/src/rotor.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'rotord/src') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 9544446..9622c04 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -333,7 +333,8 @@ bool Graph::parseJson(string &data,string &media_path){ } if (attr->type=="string") { val=jnodes[i]["attributes"][m]["value"].asString(); - attr->value=val; + //attr->value=val; + attr->init(val); } if (attr->type=="array"){ std::vector vals; @@ -344,6 +345,7 @@ bool Graph::parseJson(string &data,string &media_path){ } attr->init(vals); } + node->init_attribute(attribute); //cerr << "Rotor: setting attribute '"<type<<" to "<type<<" to "<