summaryrefslogtreecommitdiff
path: root/src/rotateextrude.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rotateextrude.cc')
-rw-r--r--src/rotateextrude.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rotateextrude.cc b/src/rotateextrude.cc
index 29a873f..b6edb8b 100644
--- a/src/rotateextrude.cc
+++ b/src/rotateextrude.cc
@@ -52,12 +52,11 @@ AbstractNode *RotateExtrudeModule::evaluate(const Context *ctx, const ModuleInst
{
RotateExtrudeNode *node = new RotateExtrudeNode(inst);
- std::vector<std::string> argnames;
- argnames += "file", "layer", "origin", "scale";
- std::vector<Expression*> argexpr;
+ AssignmentList args;
+ args += Assignment("file", NULL), Assignment("layer", NULL), Assignment("origin", NULL), Assignment("scale", NULL);
Context c(ctx);
- c.setVariables(argnames, argexpr, evalctx);
+ c.setVariables(args, evalctx);
node->fn = c.lookup_variable("$fn").toDouble();
node->fs = c.lookup_variable("$fs").toDouble();
contact: Jan Huwald // Impressum