mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
blend colors were getting lost
This commit is contained in:
parent
1dfa65881b
commit
b9caf48c17
@ -523,22 +523,22 @@ texture_body:
|
||||
} else if (cmp_nocase_uh(name, "blendr") == 0) {
|
||||
Colorf color = texture->get_color();
|
||||
color[0] = value;
|
||||
texture->set_color(value);
|
||||
texture->set_color(color);
|
||||
|
||||
} else if (cmp_nocase_uh(name, "blendg") == 0) {
|
||||
Colorf color = texture->get_color();
|
||||
color[1] = value;
|
||||
texture->set_color(value);
|
||||
texture->set_color(color);
|
||||
|
||||
} else if (cmp_nocase_uh(name, "blendb") == 0) {
|
||||
Colorf color = texture->get_color();
|
||||
color[2] = value;
|
||||
texture->set_color(value);
|
||||
texture->set_color(color);
|
||||
|
||||
} else if (cmp_nocase_uh(name, "blenda") == 0) {
|
||||
Colorf color = texture->get_color();
|
||||
color[3] = value;
|
||||
texture->set_color(value);
|
||||
texture->set_color(color);
|
||||
|
||||
} else if (cmp_nocase_uh(name, "uv_name") == 0) {
|
||||
texture->set_uv_name(strval);
|
||||
|
Loading…
x
Reference in New Issue
Block a user