From 8fe0c8d0fd02d42ecd68e562c734d4f41cb41700 Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 9 Feb 2014 22:08:45 +0000 Subject: NT command sequence restructure --- NT/src/rendercontext.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'NT/src/rendercontext.cpp') diff --git a/NT/src/rendercontext.cpp b/NT/src/rendercontext.cpp index 631f4b8..28e722d 100644 --- a/NT/src/rendercontext.cpp +++ b/NT/src/rendercontext.cpp @@ -35,15 +35,15 @@ void Render_context::runTask() { renders[cmd.uid].status=FAILED; } } - if(cmd.task==LOAD_GRAPH) { + if(cmd.task==LOAD_GRAPH_FILE||cmd.task==LOAD_GRAPH_STRING) { state=LOADING_GRAPH; - if (graph_filename!="") { - if (!graph.loadFile(cmd.message,media_path)){ - cerr<<"Rotor: failed to load graph from "<2) { - string video_filename=media_dir+command.body; + string video_filename=media_path+command.body; //check file exists Poco::File f=Poco::File(video_filename); if (f.exists()) { -- cgit v1.2.3