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:20 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-01-09 17:47:08 +0300
commit04122c8eb257d56cf055f409d5286774cf31bbb6 (patch)
tree0984326c50540f8738c207b2c1c83737e27e4f1a /source/blender/usd
parente55ffb28a977ef16ef303b766233366086af2bfd (diff)
USD Exporter: clarification of some comments in the code
No functional changes.
Diffstat (limited to 'source/blender/usd')
-rw-r--r--source/blender/usd/intern/abstract_hierarchy_iterator.h8
1 files changed, 5 insertions, 3 deletions
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: