Use transparency from color name. Fixes #852

master
Marius Kintel 2014-06-26 11:36:02 -04:00
parent 8733b875f2
commit 705b913c18
1 changed files with 1 additions and 4 deletions

View File

@ -73,10 +73,7 @@ AbstractNode *ColorModule::instantiate(const Context *ctx, const ModuleInstantia
boost::algorithm::to_lower(colorname);
Color4f color;
if (colormap.find(colorname) != colormap.end()) {
color = colormap[colorname];
node->color[0] = color[0];
node->color[1] = color[1];
node->color[2] = color[2];
node->color = colormap[colorname];
} else {
PRINTB_NOCACHE("WARNING: Color name \"%s\" unknown. Please see", colorname);
PRINT_NOCACHE("WARNING: http://en.wikipedia.org/wiki/Web_colors");