summaryrefslogtreecommitdiff
path: root/src/surface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.cc')
-rw-r--r--src/surface.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/surface.cc b/src/surface.cc
index b2abbed..ddcd3a6 100644
--- a/src/surface.cc
+++ b/src/surface.cc
@@ -64,7 +64,7 @@ AbstractNode *SurfaceModule::evaluate(const Context *ctx, const ModuleInstantiat
Context c(ctx);
c.args(argnames, argexpr, inst->argnames, inst->argvalues);
- node->filename = c.lookup_variable("file").text;
+ node->filename = c.get_absolute_path(c.lookup_variable("file").text);
Value center = c.lookup_variable("center", true);
if (center.type == Value::BOOL) {
contact: Jan Huwald // Impressum