mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-15 08:59:40 +00:00
Update attachments.scad, fix tag_scope example
tag_scope only works if its used inside attachable which is the opposite of the documentation example
This commit is contained in:
parent
9717497174
commit
ed525909d3
1 changed files with 2 additions and 2 deletions
|
@ -1246,11 +1246,11 @@ module default_tag(tag,do_tag=true)
|
||||||
// Note that if you directly set the `$tag` variable then tag scoping will not work correctly.
|
// Note that if you directly set the `$tag` variable then tag scoping will not work correctly.
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
// `$tag_prefix` is set to the value of `scope=` if given, otherwise is set to a random string.
|
// `$tag_prefix` is set to the value of `scope=` if given, otherwise is set to a random string.
|
||||||
// Example: In this example the ring module uses "remove" tags which will conflict with use of the same tags by the parent.
|
// Example: In this example the ring module uses "remove" tags which will conflict with use of the same tags by the parent without tag_scope.
|
||||||
// module ring(r,h,w=1,anchor,spin,orient)
|
// module ring(r,h,w=1,anchor,spin,orient)
|
||||||
// {
|
// {
|
||||||
// tag_scope("ringscope")
|
|
||||||
// attachable(anchor,spin,orient,r=r,h=h){
|
// attachable(anchor,spin,orient,r=r,h=h){
|
||||||
|
// tag_scope("ringscope")
|
||||||
// diff()
|
// diff()
|
||||||
// cyl(r=r,h=h)
|
// cyl(r=r,h=h)
|
||||||
// tag("remove") cyl(r=r-w,h=h+1);
|
// tag("remove") cyl(r=r-w,h=h+1);
|
||||||
|
|
Loading…
Reference in a new issue