From 502e31209226a06213bf6fcb68a32e69275ed47a Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Fri, 29 Jul 2005 23:11:31 +0000 Subject: [PATCH] now taking the alpha is connected aka yellow alpha as a directive to retain the alpha on the result --- pandatool/src/maya/mayaShaderColorDef.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandatool/src/maya/mayaShaderColorDef.cxx b/pandatool/src/maya/mayaShaderColorDef.cxx index b8efac5fec..e7ccecd8e5 100644 --- a/pandatool/src/maya/mayaShaderColorDef.cxx +++ b/pandatool/src/maya/mayaShaderColorDef.cxx @@ -261,7 +261,7 @@ read_surface_color(MayaShader *shader, MObject color, bool trans) { get_angle_attribute(color, "rotateFrame", _rotate_frame); get_bool_attribute(color, "alphaIsLuminance", _alpha_is_luminance); - + get_bool_attribute(color, "mirror", _mirror); get_bool_attribute(color, "stagger", _stagger); get_bool_attribute(color, "wrapU", _wrap_u); @@ -335,6 +335,9 @@ read_surface_color(MayaShader *shader, MObject color, bool trans) { // sometimes, by default, maya gives a outAlpha on subsequent plugs, ignore that if (pla_name.find("outAlpha") != string::npos) { maya_cat.debug() << pl.name() << " ignoring: " << pla_name << endl; + // In this case the artist is wanting to retain alpha at the result + // So make sure that this alpha is not thrown out by the egg file + _alpha_is_luminance = true; continue; } if (!first) {