Browse Source

mayaegg: fix various compiler warnings

rdb 7 years ago
parent
commit
754344906c
1 changed files with 3 additions and 5 deletions
  1. 3 5
      pandatool/src/mayaegg/mayaEggLoader.cxx

+ 3 - 5
pandatool/src/mayaegg/mayaEggLoader.cxx

@@ -1370,7 +1370,6 @@ void MayaEggLoader::TraverseEggNode(EggNode *node, EggGroup *context, string del
     int numVertices = 0;
     for (ci = poly->begin(); ci != poly->end(); ++ci) {
       EggVertex *vtx = (*ci);
-      EggVertexPool *pool = poly->get_pool();
       LTexCoordd uv(0,0);
       if (vtx->has_uv()) {
         uv = vtx->get_uv();
@@ -1571,8 +1570,8 @@ void MayaEggLoader::TraverseEggNode(EggNode *node, EggGroup *context, string del
         mayaloader_cat.debug() << delim+delstring << "found an EggTable: " << node->get_name() << endl;
       }
     } else if (node->is_of_type(EggXfmSAnim::get_class_type())) {
-      MayaAnim *anim = GetAnim(DCAST(EggXfmSAnim, node));
-      // anim->PrintData();
+      //MayaAnim *anim = GetAnim(DCAST(EggXfmSAnim, node));
+      //anim->PrintData();
       if (mayaloader_cat.is_debug()) {
         mayaloader_cat.debug() << delim+delstring << "found an EggXfmSAnim: " << node->get_name() << endl;
       }
@@ -1797,7 +1796,7 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a
   double thickness = 0.0;
   for (ji = _joint_tab.begin(); ji != _joint_tab.end(); ++ji) {
     MayaEggJoint *joint = (*ji).second;
-    double dfo = ((*ji).second->GetPos()).length();
+    double dfo = (joint->GetPos()).length();
     if (dfo > thickness) {
       thickness = dfo;
     }
@@ -2013,7 +2012,6 @@ void MayaEggLoader::PrintData(MayaEggMesh *mesh)
 
 void MayaEggLoader::ParseFrameInfo(string comment)
 {
-  int length = 0;
   int pos, ls, le;
 
   pos = comment.find("-fri");