bug fixes for "default" color

This commit is contained in:
Adrian Mariano 2022-03-20 09:03:18 -04:00
parent 942c15e84d
commit c25d3a3f67
2 changed files with 3 additions and 9 deletions

View file

@ -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;

View file

@ -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);