[Bf-blender-cvs] [87edd0a9577] temp-sybren-usd-patch-01: USD: clearer explanation of when to override `get_id_name()`

Sybren A. Stüvel noreply at git.blender.org
Tue Nov 26 18:22:15 CET 2019


Commit: 87edd0a95777bc441989fbfdcb164178d29dd919
Author: Sybren A. Stüvel
Date:   Tue Nov 26 12:42:03 2019 +0100
Branches: temp-sybren-usd-patch-01
https://developer.blender.org/rB87edd0a95777bc441989fbfdcb164178d29dd919

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



More information about the Bf-blender-cvs mailing list