From 9f6b19526de8b69bf8015b835f358dd8c2eb6449 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 28 Jan 2022 13:59:08 +1100 Subject: Cleanup: spelling in comments Also minor wording improvements. --- source/blender/io/usd/intern/usd_writer_material.cc | 4 ++-- source/blender/io/usd/intern/usd_writer_material.h | 16 +++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'source/blender/io') 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, -- cgit v1.2.3