Commit: 3852b57976f4586623b930d7fac0b0d516173f9c
Author: Sybren A. Stüvel
Date: Tue Nov 26 12:42:03 2019 +0100
Branches: temp-sybren-usd-patch-02
https://developer.blender.org/rB3852b57976f4586623b930d7fac0b0d516173f9c
USD: clearer explanation of when to override `get_id_name()`
===================================================================
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 e1228fbb075..b1ef6928cd0 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.h
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.h
@@ -156,8 +156,8 @@ class AbstractHierarchyIterator {
* This base implementation is a no-op; override in a concrete subclass. */
virtual std::string make_valid_name(const std::string &name) const;
- /* Return the name of this ID datablock that is valid for the exported file
format.
- * Overriding is probably not necessary if the subclass implements
make_valid_name(). */
+ /* Return the name of this ID datablock that is valid for the exported file
format. Overriding is
+ * only necessary if make_valid_name(id->name+2) is not suitable for the
exported file format. */
virtual std::string get_id_name(const ID *id) const;
/* Given a HierarchyContext of some Object *, return an export path that is
valid for its
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs