[Bf-blender-cvs] [f2cb4ba0c3c] usd-importer-T81257-merge: USD import: comment unused parameter.

makowalski noreply at git.blender.org
Mon Jul 19 02:48:40 CEST 2021


Commit: f2cb4ba0c3c71da40d3b4d16aa89d3e4312a9761
Author: makowalski
Date:   Sun Jul 18 16:43:02 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rBf2cb4ba0c3c71da40d3b4d16aa89d3e4312a9761

USD import: comment unused parameter.

Added comment for unused Object parameter in get_usd_reader().

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

M	source/blender/io/usd/intern/usd_capi_import.cc

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

diff --git a/source/blender/io/usd/intern/usd_capi_import.cc b/source/blender/io/usd/intern/usd_capi_import.cc
index 3e37dd35aae..d04e738622a 100644
--- a/source/blender/io/usd/intern/usd_capi_import.cc
+++ b/source/blender/io/usd/intern/usd_capi_import.cc
@@ -427,6 +427,10 @@ bool USD_import(struct bContext *C,
   return import_ok;
 }
 
+/* TODO(makowalski): Extend this function with basic validation that the
+ * USD reader is compatible with the type of the given (currently unused) 'ob'
+ * Object parameter, similar to the logic in get_abc_reader() in the
+ * Alembic importer code. */
 static USDPrimReader *get_usd_reader(CacheReader *reader, Object * /* ob */, const char **err_str)
 {
   USDPrimReader *usd_reader = reinterpret_cast<USDPrimReader *>(reader);



More information about the Bf-blender-cvs mailing list