Commit a1dc252b authored by Mike Kremer's avatar Mike Kremer
Browse files

We actually want to override all color settings for the whole line if color is...

We actually want to override all color settings for the whole line if color is set via set_color(), so we need a clear_colors() in fact.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11135 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d89f78c6
......@@ -153,6 +153,7 @@ public:
/// Override material node's set color function in order to locally add color
void set_color(const Vec4f& _c) {
clear_colors();
add_color(ACG::Vec3uc((char)(((int)_c[0])*255),
(char)(((int)_c[1])*255),
(char)(((int)_c[2])*255)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment