Browse Source

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

Asad M. Zaman 21 years ago
parent
commit
63d72a47d4

+ 1 - 1
pandatool/src/maya/mayaShaderColorDef.cxx

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

+ 2 - 0
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -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