summaryrefslogtreecommitdiff
path: root/src/function.h
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-23 20:47:54 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-23 20:47:54 (GMT)
commitf3d16e23b959be4eb05c50e09a880b1e642f3432 (patch)
tree9e27ce8f230fa3c8645c363a3823d82649839261 /src/function.h
parent64c3be3fd7734f94f1057825ad66ba4ac2393134 (diff)
Multiple non-MDI assumptions were made, setting CWD and assuming it didn't change. Fix required to pass more context to nodes (functions). It's not totally clean, but it's a start. Fixes bugs: opening multiple files simultaneously only loaded the first file, refreshing an scad file referencing an external file failed if another scad file was opened in the meantime.
git-svn-id: http://svn.clifford.at/openscad/trunk@451 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/function.h')
-rw-r--r--src/function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/function.h b/src/function.h
index 31ca2d6..3bb89c2 100644
--- a/src/function.h
+++ b/src/function.h
@@ -15,7 +15,7 @@ public:
class BuiltinFunction : public AbstractFunction
{
public:
- typedef Value (*eval_func_t)(const QVector<QString> &argnames, const QVector<Value> &args);
+ typedef Value (*eval_func_t)(const Context *ctx, const QVector<QString> &argnames, const QVector<Value> &args);
eval_func_t eval_func;
BuiltinFunction(eval_func_t f) : eval_func(f) { }
contact: Jan Huwald // Impressum