Browse Source

new EggGroup::set_dcs_flag() interface

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

+ 5 - 5
pandatool/src/mayaegg/mayaToEggConverter.cxx

@@ -842,13 +842,13 @@ get_transform(const MDagPath &dag_path, EggGroup *egg_group) {
 
 
   case TT_model:
   case TT_model:
     if (!egg_group->get_model_flag() &&
     if (!egg_group->get_model_flag() &&
-        !egg_group->get_dcs_flag()) {
+        egg_group->get_dcs_type() == EggGroup::DC_none) {
       return;
       return;
     }
     }
     break;
     break;
 
 
-  case TT_dcs:
-    if (!egg_group->get_dcs_flag()) {
+  case TT_dcs: 
+    if (egg_group->get_dcs_type() == EggGroup::DC_none) {
       return;
       return;
     }
     }
     break;
     break;
@@ -1555,7 +1555,7 @@ make_locator(const MDagPath &dag_path, const MFnDagNode &dag_node,
   // Presumably, the locator's position has some meaning to the
   // Presumably, the locator's position has some meaning to the
   // end-user, so we will implicitly tag it with the DCS flag so it
   // end-user, so we will implicitly tag it with the DCS flag so it
   // won't get flattened out.
   // won't get flattened out.
-  egg_group->set_dcs_flag(true);
+  egg_group->set_dcs_type(EggGroup::DC_net);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -1746,7 +1746,7 @@ r_get_egg_group(const string &name, const MDagPath &dag_path,
     // case, so we can test for these flags later.
     // case, so we can test for these flags later.
     if (egg_group->has_object_type("dcs")) {
     if (egg_group->has_object_type("dcs")) {
       egg_group->remove_object_type("dcs");
       egg_group->remove_object_type("dcs");
-      egg_group->set_dcs_flag(true);
+      egg_group->set_dcs_type(EggGroup::DC_default);
     }
     }
     if (egg_group->has_object_type("model")) {
     if (egg_group->has_object_type("model")) {
       egg_group->remove_object_type("model");
       egg_group->remove_object_type("model");