From 988bd5983f2035f4c7fb52e88041c1b171bc2703 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Fri, 29 Jul 2005 03:59:15 +0000 Subject: [PATCH] Working: meshes, textures, UVs --- pandatool/src/mayaeggimport/mayaEggLoader.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandatool/src/mayaeggimport/mayaEggLoader.cxx b/pandatool/src/mayaeggimport/mayaEggLoader.cxx index 2a9089dc0a..9f05bbcc9f 100755 --- a/pandatool/src/mayaeggimport/mayaEggLoader.cxx +++ b/pandatool/src/mayaeggimport/mayaEggLoader.cxx @@ -689,7 +689,7 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a mfn.setName(mesh->_name.c_str()); mesh->_transNode = mfn.create(mesh->_vert_count, mesh->_face_count, mesh->_vertexArray, mesh->_polygonCounts, mesh->_polygonConnects, - // mesh->_uarray, mesh->_varray, + mesh->_uarray, mesh->_varray, MObject::kNullObj, &status); mesh->_shapeNode = mfn.object(); MFnDependencyNode mdn(mesh->_transNode); @@ -697,9 +697,8 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a mfn.setName(MString(mesh->_name.c_str())+"Shape"); mdn.setName(MString(mesh->_name.c_str())); mesh->ConnectTextures(); - - // mfn.getCurrentUVSetName(cset); - // mfn.assignUVs(mesh->_polygonCounts, mesh->_uvIds, &cset); + mfn.getCurrentUVSetName(cset); + mfn.assignUVs(mesh->_polygonCounts, mesh->_uvIds, &cset); } double thickness = 0.0;