[Bf-blender-cvs] [61af9978bb5] temp-sybren-usd-patch: USD: clarified ownership of objects returned by create_xxxx_writer()

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


Commit: 61af9978bb50f8f1270a2e9d44f862f5af077822
Author: Sybren A. Stüvel
Date:   Tue Nov 26 13:02:04 2019 +0100
Branches: temp-sybren-usd-patch
https://developer.blender.org/rB61af9978bb50f8f1270a2e9d44f862f5af077822

USD: clarified ownership of objects returned by create_xxxx_writer()

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

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 7e672fb355e..347fe571ddf 100644
--- a/source/blender/usd/intern/abstract_hierarchy_iterator.h
+++ b/source/blender/usd/intern/abstract_hierarchy_iterator.h
@@ -216,7 +216,10 @@ class AbstractHierarchyIterator {
    * nullptr if the object or its data should not be exported. Returning a nullptr for
    * data/hair/particle will NOT prevent the transform to be written.
    *
-   * 'Xform' is used for 'transform' to be consistent with the terminology of USD and Alembic. */
+   * 'Xform' is used for 'transform' to be consistent with the terminology of USD and Alembic.
+   *
+   * The returned writer is owned by the AbstractHierarchyWriter, and should be freed in
+   * delete_object_writer(). */
   virtual AbstractHierarchyWriter *create_xform_writer(const HierarchyContext *context) = 0;
   virtual AbstractHierarchyWriter *create_data_writer(const HierarchyContext *context) = 0;
   virtual AbstractHierarchyWriter *create_hair_writer(const HierarchyContext *context) = 0;



More information about the Bf-blender-cvs mailing list