Skip to content

Commit 1204e0a

Browse files
committed
use default_tag
1 parent 5981835 commit 1204e0a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

hinges.scad

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,7 @@ module knuckle_hinge(length, segs, offset, inner=false, arm_height=0, arm_angle=
387387
union(){}
388388
}
389389
}
390-
module in_place_clearance_tag() {
391-
// don't set the tag if it's already set for backward compatibility
392-
if(in_place != false && knuckle_clearance && $tag == "") {
393-
tag("keep")
394-
children();
395-
} else {
396-
children();
397-
}
398-
}
399-
in_place_clearance_tag()
390+
default_tag("keep", do_tag=in_place != false && knuckle_clearance)
400391
attachable(anchor,spin,orient,
401392
size=[length,
402393
arm_height+offset/tan(arm_angle)+knuckle_diam/2+knuckle_diam/2/sin(arm_angle),

0 commit comments

Comments
 (0)