Skip to content

Commit

Permalink
fix removal of filtered plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kschzt committed Nov 17, 2014
1 parent 3f953d6 commit 10b3a13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/publish-seq
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ function copy_scene(src, data_dir, pub_dir)
if(!fs.lstatSync(cp).isDirectory())
copy(cp, path.join(dst_dir, file));
});

}

function process_graph(graph, data_dir, pub_dir)
Expand Down Expand Up @@ -200,9 +199,8 @@ function prune_dynamic_slots(d_slots)
function removeItem(coll, item)
{
var idx = coll.indexOf(item);

if(idx > -1)
coll.removeAt(idx);
coll.splice(idx, 1);
}

function delete_node(graph, node)
Expand Down Expand Up @@ -316,7 +314,7 @@ function optimize_graph(graph)

if(node.plugin === 'graph' || node.plugin === 'loop')
optimize_graph(node.graph);
else if(node.plugin in filtered_plugins)
else if(filtered_plugins.indexOf(node.plugin) > -1)
pruned.push(node);

delete node.x;
Expand Down

0 comments on commit 10b3a13

Please sign in to comment.