Giles Bathgate, Clifford Wolf:

Fixed linear_extrude and rotate_extrude for non-dxf extrudes



git-svn-id: http://svn.clifford.at/openscad/trunk@453 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
clifford 2010-02-25 10:21:11 +00:00
parent 01992ecae2
commit 26cf4309df
2 changed files with 10 additions and 2 deletions

View File

@ -91,7 +91,11 @@ AbstractNode *DxfLinearExtrudeModule::evaluate(const Context *ctx, const ModuleI
Value twist = c.lookup_variable("twist", true);
Value slices = c.lookup_variable("slices", true);
node->filename = c.get_absolute_path(file.text);
if(!file.text.isNull())
node->filename = c.get_absolute_path(file.text);
else
node->filename = file.text;
node->layername = layer.text;
node->height = height.num;
node->convexity = (int)convexity.num;

View File

@ -84,7 +84,11 @@ AbstractNode *DxfRotateExtrudeModule::evaluate(const Context *ctx, const ModuleI
Value origin = c.lookup_variable("origin", true);
Value scale = c.lookup_variable("scale", true);
node->filename = c.get_absolute_path(file.text);
if(!file.text.isNull())
node->filename = c.get_absolute_path(file.text);
else
node->filename = file.text;
node->layername = layer.text;
node->convexity = (int)convexity.num;
origin.getv2(node->origin_x, node->origin_y);