1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-22 23:41:10 +02:00

fped: mechanical holes had incorrect layers

- inst.c (inst_hole): set inst->u.hole.layers, not inst->u.pad.layers
- layer.c (mech_hole_layers): holes don't need solder paste



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6006 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner 2011-03-24 23:42:47 +00:00
parent 335ddb6e1d
commit 78e4ba0d9c
2 changed files with 2 additions and 3 deletions

2
inst.c
View File

@ -934,7 +934,7 @@ int inst_hole(struct obj *obj, struct coord a, struct coord b)
inst = add_inst(&hole_ops, ip_hole, a);
inst->obj = obj;
inst->u.hole.other = b;
inst->u.pad.layers = mech_hole_layers();
inst->u.hole.layers = mech_hole_layers();
find_inst(inst);
update_bbox(&inst->bbox, b);
propagate_bbox(inst);

View File

@ -91,8 +91,7 @@ enum pad_type layers_to_pad_type(layer_type layers)
layer_type mech_hole_layers(void)
{
return LAYER_PASTE_TOP | LAYER_PASTE_BOTTOM |
LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
return LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
}