diff options
Diffstat (limited to 'src/render.cc')
-rw-r--r-- | src/render.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/render.cc b/src/render.cc index 855e5e3..bb08c0c 100644 --- a/src/render.cc +++ b/src/render.cc @@ -45,12 +45,11 @@ AbstractNode *RenderModule::evaluate(const Context *ctx, const ModuleInstantiati { RenderNode *node = new RenderNode(inst); - std::vector<std::string> argnames; - argnames += "convexity"; - std::vector<Expression*> argexpr; + AssignmentList args; + args += Assignment("convexity", NULL); Context c(ctx); - c.setVariables(argnames, argexpr, evalctx); + c.setVariables(args, evalctx); Value v = c.lookup_variable("convexity"); if (v.type() == Value::NUMBER) |