ignore underworld and intermediate objects

This commit is contained in:
David Rose 2003-03-13 02:07:22 +00:00
parent 81b7084fca
commit a595b69ba1
1 changed files with 13 additions and 1 deletions

View File

@ -595,7 +595,19 @@ process_model_node(const MDagPath &dag_path, EggGroupNode *egg_root) {
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()) {
mayaegg_cat.debug()
<< "Ignoring camera node " << dag_path.fullPathName() << "\n";