hide invisible nodes

This commit is contained in:
David Rose 2003-08-21 04:29:26 +00:00
parent 015f663149
commit 28d0f1f9d2
1 changed files with 24 additions and 0 deletions

View File

@ -526,6 +526,18 @@ process_model_node(MayaNodeDesc *node_desc) {
return false;
}
MObject node = dag_path.transform(&status);
bool visible;
if (!get_bool_attribute(node, "visibility", visible)) {
if (mayaegg_cat.is_debug()) {
mayaegg_cat.debug()
<< "Couldn't get visibility attribute for " << dag_node.name()
<< "\n";
}
visible = true;
}
string path = dag_path.fullPathName().asChar();
if (mayaegg_cat.is_debug()) {
@ -537,6 +549,11 @@ process_model_node(MayaNodeDesc *node_desc) {
<< " (animated)";
}
if (!visible) {
mayaegg_cat.debug(false)
<< " (invisible)";
}
mayaegg_cat.debug(false) << "\n";
}
@ -548,6 +565,13 @@ process_model_node(MayaNodeDesc *node_desc) {
get_joint_transform(dag_path, egg_group);
}
} else if (!visible) {
if (mayaegg_cat.is_debug()) {
mayaegg_cat.debug()
<< "Ignoring invisible node " << path
<< "\n";
}
} else if (dag_node.inUnderWorld()) {
if (mayaegg_cat.is_debug()) {
mayaegg_cat.debug()