mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-27 15:29:41 +00:00
bug fixes for "default" color
This commit is contained in:
parent
942c15e84d
commit
c25d3a3f67
2 changed files with 3 additions and 9 deletions
|
@ -1413,14 +1413,8 @@ module attachable(
|
|||
$parent_size = _attach_geom_size(geom);
|
||||
$attach_to = undef;
|
||||
do_show = _attachment_is_shown($tags);
|
||||
if (do_show) {
|
||||
if (is_undef($color) || $color=="default") {
|
||||
children(0);
|
||||
} else color($color) {
|
||||
$color = undef;
|
||||
children(0);
|
||||
}
|
||||
}
|
||||
if (do_show)
|
||||
_color($color) children(0);
|
||||
if (is_def($save_color)) {
|
||||
$color=$save_color;
|
||||
$save_color=undef;
|
||||
|
|
|
@ -19,7 +19,7 @@ module _text(text,size,font,halign,valign,spacing,direction,language,script)
|
|||
language=language, script=script
|
||||
);
|
||||
|
||||
module _color(color) if (color==undef) children(); else color(color) children();
|
||||
module _color(color) if (color==undef || color=="default") children(); else color(color) children();
|
||||
|
||||
module _cube(size,center) cube(size,center=center);
|
||||
|
||||
|
|
Loading…
Reference in a new issue