Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-01-09 17:32:08 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-01-09 17:47:07 +0300
commite55ffb28a977ef16ef303b766233366086af2bfd (patch)
tree5e8edff3003956738d183d6d8ffdeb77c269e56a /source/blender/usd
parent9f5f91d6bd934b70174a9ddb4ea47503d87d4b14 (diff)
USD Exporter: make it possible to debug-print arbitrary export graphs
This is useful for debugging things like the previous commit. No functional changes to the actual USD exporter.
Diffstat (limited to 'source/blender/usd')
-rw-r--r--source/blender/usd/intern/abstract_hierarchy_iterator.cc4
-rw-r--r--source/blender/usd/intern/abstract_hierarchy_iterator.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
index fae41c1bbd0..73124768696 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.cc
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.cc
@@ -126,10 +126,10 @@ std::string AbstractHierarchyIterator::get_object_data_path(const HierarchyConte
return path_concatenate(context->export_path, get_object_data_name(context->object));
}
-void AbstractHierarchyIterator::debug_print_export_graph() const
+void AbstractHierarchyIterator::debug_print_export_graph(const ExportGraph &graph) const
{
size_t total_graph_size = 0;
- for (const ExportGraph::value_type &map_iter : export_graph_) {
+ for (const ExportGraph::value_type &map_iter : graph) {
const DupliAndDuplicator &parent_info = map_iter.first;
Object *const export_parent = parent_info.first;
Object *const duplicator = parent_info.second;
diff --git a/source/blender/usd/intern/abstract_hierarchy_iterator.h b/source/blender/usd/intern/abstract_hierarchy_iterator.h
index 10408401797..ebe95751510 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.h
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.h
@@ -171,7 +171,7 @@ class AbstractHierarchyIterator {
virtual std::string get_object_data_path(const HierarchyContext *context) const;
private:
- void debug_print_export_graph() const;
+ void debug_print_export_graph(const ExportGraph &graph) const;
void export_graph_construct();
void connect_loose_objects();