add -suppress-vcolor

This commit is contained in:
David Rose 2003-11-21 23:03:16 +00:00
parent 29cfd81978
commit fa937c8c4a
2 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,14 @@ MayaToEgg() :
"egg object type of \"double-sided\" is set.", "egg object type of \"double-sided\" is set.",
&MayaToEgg::dispatch_none, &_respect_maya_double_sided); &MayaToEgg::dispatch_none, &_respect_maya_double_sided);
add_option
("suppress-vcolor", "", 0,
"Ignore vertex color for geometry that has a texture applied. "
"(This is the way Maya normally renders internally.) The egg flag "
"'vertex-color' may be applied to a particular model to override "
"this setting locally.",
&MayaToEgg::dispatch_none, &_suppress_vertex_color);
add_option add_option
("trans", "type", 0, ("trans", "type", 0,
"Specifies which transforms in the Maya file should be converted to " "Specifies which transforms in the Maya file should be converted to "
@ -131,6 +139,7 @@ run() {
converter._polygon_output = _polygon_output; converter._polygon_output = _polygon_output;
converter._polygon_tolerance = _polygon_tolerance; converter._polygon_tolerance = _polygon_tolerance;
converter._respect_maya_double_sided = _respect_maya_double_sided; converter._respect_maya_double_sided = _respect_maya_double_sided;
converter._always_show_vertex_color = !_suppress_vertex_color;
converter._transform_type = _transform_type; converter._transform_type = _transform_type;
vector_string::const_iterator si; vector_string::const_iterator si;

View File

@ -40,6 +40,7 @@ protected:
bool _polygon_output; bool _polygon_output;
double _polygon_tolerance; double _polygon_tolerance;
bool _respect_maya_double_sided; bool _respect_maya_double_sided;
bool _suppress_vertex_color;
MayaToEggConverter::TransformType _transform_type; MayaToEggConverter::TransformType _transform_type;
vector_string _subsets; vector_string _subsets;
}; };