diff options
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r-- | src/cgaladv.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc index 073a908..276b59c 100644 --- a/src/cgaladv.cc +++ b/src/cgaladv.cc @@ -59,7 +59,7 @@ AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiat argnames += "type", "level", "convexity"; if (type == RESIZE) - argnames += "newsize"; + argnames += "newsize", "auto"; Context c(ctx); c.args(argnames, argexpr, inst->argnames, inst->argvalues); @@ -90,6 +90,8 @@ AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiat if ( v.size() >= 2 ) node->newsize[1] = v[1].toDouble(); if ( v.size() >= 3 ) node->newsize[2] = v[2].toDouble(); } + Value autosize = c.lookup_variable("auto"); + node->autosize = autosize.toBool(); } node->convexity = (int)convexity.toDouble(); |