mirror of https://github.com/vitalif/openscad
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-ec61d464b74cstl_dim
parent
01992ecae2
commit
26cf4309df
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue