Browse Source

added more descriptive warning message when encountering a CollisionTube

Chris Brunner 16 years ago
parent
commit
e3bffa43aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pandatool/src/bam/bamToEgg.cxx

+ 3 - 0
pandatool/src/bam/bamToEgg.cxx

@@ -34,6 +34,7 @@
 #include "collisionPlane.h"
 #include "collisionPlane.h"
 #include "collisionSphere.h"
 #include "collisionSphere.h"
 #include "collisionInvSphere.h"
 #include "collisionInvSphere.h"
+#include "collisionTube.h"
 #include "textureStage.h"
 #include "textureStage.h"
 #include "geomNode.h"
 #include "geomNode.h"
 #include "geom.h"
 #include "geom.h"
@@ -341,6 +342,8 @@ convert_collision_node(CollisionNode *node, const WorkingNodePath &node_path,
         nout << "Encountered unhandled collsion type: CollisionSphere" << "\n";
         nout << "Encountered unhandled collsion type: CollisionSphere" << "\n";
       } else if (child->is_of_type(CollisionInvSphere::get_class_type())) {
       } else if (child->is_of_type(CollisionInvSphere::get_class_type())) {
         nout << "Encountered unhandled collsion type: CollisionInvSphere" << "\n";
         nout << "Encountered unhandled collsion type: CollisionInvSphere" << "\n";
+      } else if (child->is_of_type(CollisionTube::get_class_type())) {
+        nout << "Encountered unhandled collsion type: CollisionTube" << "\n";
       } else {
       } else {
         nout << "Encountered unknown CollisionSolid" << "\n";
         nout << "Encountered unknown CollisionSolid" << "\n";
       }
       }