mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-07-31 09:20:22 +02:00
Make default_tag use its second argument
This commit is contained in:
@@ -862,9 +862,9 @@ module force_tag(tag)
|
|||||||
// position(TOP) thing();
|
// position(TOP) thing();
|
||||||
// position(RIGHT) tag("keep_it") 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();
|
else children();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user