[Bf-blender-cvs] [04122c8eb25] master: USD Exporter: clarification of some comments in the code

Sybren A. Stüvel noreply at git.blender.org
Thu Jan 9 15:53:07 CET 2020


Commit: 04122c8eb257d56cf055f409d5286774cf31bbb6
Author: Sybren A. Stüvel
Date:   Thu Jan 9 15:32:20 2020 +0100
Branches: master
https://developer.blender.org/rB04122c8eb257d56cf055f409d5286774cf31bbb6

USD Exporter: clarification of some comments in the code

No functional changes.

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

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

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

diff --git a/source/blender/usd/intern/abstract_hierarchy_iterator.h b/source/blender/usd/intern/abstract_hierarchy_iterator.h
index ebe95751510..8bca2ddd447 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.h
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.h
@@ -128,14 +128,16 @@ class AbstractHierarchyIterator {
  public:
   /* Mapping from export path to writer. */
   typedef std::map<std::string, AbstractHierarchyWriter *> WriterMap;
-  /* Pair of a duplicated object and its duplicator, typically a pair of HierarchyContext::object
-   * and HierarchyContext::duplicator. */
+  /* Pair of a (potentially duplicated) object and its duplicator (or nullptr).
+   * This is typically used to store a pair of HierarchyContext::object and
+   * HierarchyContext::duplicator. */
   typedef std::pair<Object *, Object *> DupliAndDuplicator;
   /* All the children of some object, as per the export hierarchy. */
   typedef std::set<HierarchyContext *> ExportChildren;
   /* Mapping from an object and its duplicator to the object's export-children. */
   typedef std::map<DupliAndDuplicator, ExportChildren> ExportGraph;
-  /* Mapping from (potential) duplicator ID to export path. */
+  /* Mapping from ID to its export path. This is used for instancing; given an
+   * instanced datablock, the export path of the original can be looked up. */
   typedef std::map<ID *, std::string> ExportPathMap;
 
  protected:



More information about the Bf-blender-cvs mailing list