Browse Source

ignore underworld and intermediate objects

David Rose 23 years ago
parent
commit
a595b69ba1
1 changed files with 13 additions and 1 deletions
  1. 13 1
      pandatool/src/mayaegg/mayaToEggConverter.cxx

+ 13 - 1
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -595,7 +595,19 @@ process_model_node(const MDagPath &dag_path, EggGroupNode *egg_root) {
     mayaegg_cat.debug(false) << "\n";
     mayaegg_cat.debug(false) << "\n";
   }
   }
 
 
-  if (dag_path.hasFn(MFn::kCamera)) {
+  if (dag_node.inUnderWorld()) {
+    if (mayaegg_cat.is_debug()) {
+      mayaegg_cat.debug()
+        << "Ignoring underworld node " << dag_path.fullPathName() << "\n";
+    }
+
+  } else if (dag_node.isIntermediateObject()) {
+    if (mayaegg_cat.is_debug()) {
+      mayaegg_cat.debug()
+        << "Ignoring intermediate object " << dag_path.fullPathName() << "\n";
+    }
+
+  } else if (dag_path.hasFn(MFn::kCamera)) {
     if (mayaegg_cat.is_debug()) {
     if (mayaegg_cat.is_debug()) {
       mayaegg_cat.debug()
       mayaegg_cat.debug()
         << "Ignoring camera node " << dag_path.fullPathName() << "\n";
         << "Ignoring camera node " << dag_path.fullPathName() << "\n";