[Bf-blender-cvs] [d4bec94864a] sybren-usd: USD: Cleanup, removed commented-out debug code

Sybren A. Stüvel noreply at git.blender.org
Tue Jul 16 18:44:07 CEST 2019


Commit: d4bec94864a602dbe0289a294cba4e9118ef1fca
Author: Sybren A. Stüvel
Date:   Tue Jul 16 15:46:19 2019 +0200
Branches: sybren-usd
https://developer.blender.org/rBd4bec94864a602dbe0289a294cba4e9118ef1fca

USD: Cleanup, removed commented-out debug code

===================================================================

M	source/blender/usd/intern/abstract_hierarchy_iterator.cc

===================================================================

diff --git a/source/blender/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
index 2bd368de221..0ab8678d437 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.cc
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
@@ -64,77 +64,8 @@ void AbstractHierarchyIterator::release_writers()
 void AbstractHierarchyIterator::iterate()
 {
   construct_export_graph();
-
-  // // For debug: print the export graph.
-  // printf("====== Export graph pre-prune:\n");
-  // for (auto it : export_graph) {
-  //   const std::pair<Object *, Object *> &parent_info = it.first;
-  //   Object *const export_parent = parent_info.first;
-  //   Object *const duplicator = parent_info.second;
-
-  //   if (duplicator != nullptr) {
-  //     printf("    DU %s (as dupped by %s):\n",
-  //            export_parent == nullptr ? "-null-" : (export_parent->id.name + 2),
-  //            duplicator->id.name + 2);
-  //   }
-  //   else {
-  //     printf("    OB %s:\n", export_parent == nullptr ? "-null-" : (export_parent->id.name +
-  //     2));
-  //   }
-
-  //   for (auto child_it : it.second) {
-  //     if (child_it.duplicator == nullptr) {
-  //       printf("       - %s%s\n",
-  //              child_it.object->id.name + 2,
-  //              child_it.weak_export ? " (weak)" : "");
-  //     }
-  //     else {
-  //       printf("       - %s (dup by %s%s)\n",
-  //              child_it.object->id.name + 2,
-  //              child_it.duplicator->id.name + 2,
-  //              child_it.weak_export ? ", weak" : "");
-  //     }
-  //   }
-  // }
-
   prune_export_graph();
-
-  // // For debug: print the export graph.
-  // printf("====== Export graph post-prune:\n");
-  // for (auto it : export_graph) {
-  //   const std::pair<Object *, Object *> &parent_info = it.first;
-  //   Object *const export_parent = parent_info.first;
-  //   Object *const duplicator = parent_info.second;
-
-  //   if (duplicator != nullptr) {
-  //     printf("    DU %s (as dupped by %s):\n",
-  //            export_parent == nullptr ? "-null-" : (export_parent->id.name + 2),
-  //            duplicator->id.name + 2);
-  //   }
-  //   else {
-  //     printf("    OB %s:\n", export_parent == nullptr ? "-null-" : (export_parent->id.name +
-  //     2));
-  //   }
-
-  //   for (auto child_it : it.second) {
-  //     if (child_it.duplicator == nullptr) {
-  //       printf("       - %s%s\n",
-  //              child_it.object->id.name + 2,
-  //              child_it.weak_export ? " (weak)" : "");
-  //     }
-  //     else {
-  //       printf("       - %s (dup by %s%s)\n",
-  //              child_it.object->id.name + 2,
-  //              child_it.duplicator->id.name + 2,
-  //              child_it.weak_export ? ", weak" : "");
-  //     }
-  //   }
-  // }
-
-  // For debug: print the export paths.
-  // printf("====== Export paths:\n");
   make_writers(HierarchyContext::root(), nullptr);
-
   export_graph.clear();
 }



More information about the Bf-blender-cvs mailing list