[Bf-blender-cvs] [5652f66a88a] temp-sybren-usd-patch-01: USD: clarification of USDAbstractWriter::is_supported()

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


Commit: 5652f66a88afed238a65c990ada73ccb22cf9cc6
Author: Sybren A. Stüvel
Date:   Tue Nov 26 14:16:05 2019 +0100
Branches: temp-sybren-usd-patch-01
https://developer.blender.org/rB5652f66a88afed238a65c990ada73ccb22cf9cc6

USD: clarification of USDAbstractWriter::is_supported()

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

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

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

diff --git a/source/blender/usd/intern/usd_writer_abstract.h b/source/blender/usd/intern/usd_writer_abstract.h
index 6cfdf5a8ae3..548c8cf9659 100644
--- a/source/blender/usd/intern/usd_writer_abstract.h
+++ b/source/blender/usd/intern/usd_writer_abstract.h
@@ -50,8 +50,13 @@ class USDAbstractWriter : public AbstractHierarchyWriter {
 
   virtual void write(HierarchyContext &context) override;
 
-  /* Returns true iff the data to be written is actually supported. This would, for example, allow
-   * a hypothetical camera writer accept a perspective camera but reject an orthogonal one. */
+  /* Returns true if the data to be written is actually supported. This would, for example, allow a
+   * hypothetical camera writer accept a perspective camera but reject an orthogonal one.
+   *
+   * Returning false from a transform writer will prevent the object and all its decendants from
+   * being exported. Returning false from a data writer (object data, hair, or particles) will
+   * only prevent that data from being written (and thus cause the object to be exported as an
+   * Empty). */
   virtual bool is_supported(const Object *object) const;
 
   const pxr::SdfPath &usd_path() const;



More information about the Bf-blender-cvs mailing list