From ed525909d39c6973a28337e5bc8666fe1c99915b Mon Sep 17 00:00:00 2001 From: Christopher Hotchkiss Date: Wed, 2 Oct 2024 16:35:14 -0700 Subject: [PATCH] Update attachments.scad, fix tag_scope example tag_scope only works if its used inside attachable which is the opposite of the documentation example --- attachments.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachments.scad b/attachments.scad index 4a9416e..25b22aa 100644 --- a/attachments.scad +++ b/attachments.scad @@ -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. // Side Effects: // `$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) // { -// tag_scope("ringscope") // attachable(anchor,spin,orient,r=r,h=h){ +// tag_scope("ringscope") // diff() // cyl(r=r,h=h) // tag("remove") cyl(r=r-w,h=h+1);