diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-28 05:59:08 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-28 06:52:47 +0300 |
commit | 9f6b19526de8b69bf8015b835f358dd8c2eb6449 (patch) | |
tree | e14530ca6a360aba16181b6d64a0f48acf6e0efc /source/blender/io/usd | |
parent | 7475012e24ad02c116ad2dcdcd7b36ca60f62103 (diff) |
Cleanup: spelling in comments
Also minor wording improvements.
Diffstat (limited to 'source/blender/io/usd')
-rw-r--r-- | source/blender/io/usd/intern/usd_writer_material.cc | 4 | ||||
-rw-r--r-- | source/blender/io/usd/intern/usd_writer_material.h | 16 |
2 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/io/usd/intern/usd_writer_material.cc b/source/blender/io/usd/intern/usd_writer_material.cc index af448dc7794..52ad349fb98 100644 --- a/source/blender/io/usd/intern/usd_writer_material.cc +++ b/source/blender/io/usd/intern/usd_writer_material.cc @@ -440,7 +440,7 @@ static pxr::TfToken get_node_tex_image_color_space(bNode *node) return pxr::TfToken(); } -/* Search the upstream nodes connected to the given socket and return the first occurrance +/* Search the upstream nodes connected to the given socket and return the first occurrence * of the node of the given type. Return null if no node of this type was found. */ static bNode *traverse_channel(bNodeSocket *input, const short target_type) { @@ -464,7 +464,7 @@ static bNode *traverse_channel(bNodeSocket *input, const short target_type) return nullptr; } -/* Returns the first occurence of a principled bsdf or a diffuse bsdf node found in the given +/* Returns the first occurrence of a principled BSDF or a diffuse BSDF node found in the given * material's node tree. Returns null if no instance of either type was found.*/ static bNode *find_bsdf_node(Material *material) { diff --git a/source/blender/io/usd/intern/usd_writer_material.h b/source/blender/io/usd/intern/usd_writer_material.h index b2c732963dc..435ac41c4bf 100644 --- a/source/blender/io/usd/intern/usd_writer_material.h +++ b/source/blender/io/usd/intern/usd_writer_material.h @@ -31,17 +31,19 @@ namespace blender::io::usd { struct USDExporterContext; -/* Entry point to create an approximate USD Preview Surface network from a Cycles node graph. +/** + * Entry point to create an approximate USD Preview Surface network from a Cycles node graph. * Due to the limited nodes in the USD Preview Surface specification, only the following nodes * are supported: - * - UVMap - * - Texture Coordinate - * - Image Texture - * - Principled BSDF + * - UVMap + * - Texture Coordinate + * - Image Texture + * - Principled BSDF * More may be added in the future. * - * The 'default_uv' paramter is used as the default UV set name sampled by the primvar - * reader shaders generated for image texture nodes that don't have an attached UVMAp node. */ + * \param default_uv: used as the default UV set name sampled by the `primvar` + * reader shaders generated for image texture nodes that don't have an attached UVMap node. + */ void create_usd_preview_surface_material(const USDExporterContext &usd_export_context, Material *material, pxr::UsdShadeMaterial &usd_material, |