mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Make default_tag use its second argument
This commit is contained in:
parent
17f0fe8428
commit
2a0afc98ca
@ -862,9 +862,9 @@ module force_tag(tag)
|
||||
// position(TOP) thing();
|
||||
// position(RIGHT) tag("keep_it") thing();
|
||||
// }
|
||||
module default_tag(tag,do_tag=false)
|
||||
module default_tag(tag,do_tag=true)
|
||||
{
|
||||
if ($tag=="") tag(tag) children();
|
||||
if ($tag=="" && do_tag) tag(tag) children();
|
||||
else children();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user