the default uvset should be named --default--, not --map1--

This commit is contained in:
Asad M. Zaman 2005-02-23 20:56:00 +00:00
parent f15dce600b
commit 63d72a47d4
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ MayaShaderColorDef() {
_has_texture = false;
_texture_name = "";
_uvset_name = "map1";
_uvset_name = "default";
_projection_type = PT_off;
_map_uvs = NULL;

View File

@ -1770,6 +1770,8 @@ make_polyset(MayaNodeDesc *node_desc, const MDagPath &dag_path,
}
mayaegg_cat.debug() << "color_def->uvset_name :" << color_def->_uvset_name << endl;
uv_name = color_def->_uvset_name; // this is the name to look up by in maya
if (uv_name == "default")
uv_name = "map1";
if (color_def->has_projection()) {
// If the shader has a projection, use it instead of the