diff options
author | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
commit | 499fec6f79a26c9c9d2d61b90bda2e4cec424f81 (patch) | |
tree | 828271035f950a504f11a8bdb3454516835d0800 /source/blender/nodes | |
parent | aa363ec2ae9382c052f024284dcdb77ac495c177 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_dual_mesh.cc | 4 | ||||
-rw-r--r-- | source/blender/nodes/shader/node_shader_tree.cc | 6 | ||||
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_tex_sky.cc | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_dual_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_dual_mesh.cc index ed4def0cf68..03fd9ac051e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_dual_mesh.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_dual_mesh.cc @@ -554,7 +554,7 @@ static bool vertex_needs_dissolving(const int vertex, /** * Finds 'normal' vertices which are connected to only two polygons and marks them to not be - * used in the datastructures derived from the mesh. For each pair of polygons which has such a + * used in the data-structures derived from the mesh. For each pair of polygons which has such a * vertex, an edge is created for the dual mesh between the centers of those two polygons. All * edges in the input mesh which contain such a vertex are marked as 'done' to prevent duplicate * edges being created. (See T94144) @@ -703,7 +703,7 @@ static void calc_dual_mesh(GeometrySet &geometry_set, * exactly one edge in the original, we can use this array to keep track of whether it still * needs to be created or not. If it's not -1 it gives the index in `new_edges` of the dual * edge. The edges coming from preserving the boundaries only get added once anyway, so we - * don't need a hashmap for that. */ + * don't need a hash-map for that. */ Array<int> old_to_new_edges_map(mesh_in.totedge); old_to_new_edges_map.fill(-1); diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc index 1552ed9f19c..0fa977aa63c 100644 --- a/source/blender/nodes/shader/node_shader_tree.cc +++ b/source/blender/nodes/shader/node_shader_tree.cc @@ -845,7 +845,7 @@ static bool ntree_tag_bsdf_cb(bNode *fromnode, bNode *UNUSED(tonode), void *user default: /* We could return false here but since we * allow the use of Closure as RGBA, we can have - * Bsdf nodes linked to other Bsdf nodes. */ + * BSDF nodes linked to other BSDF nodes. */ break; } @@ -972,8 +972,8 @@ bNodeTreeExec *ntreeShaderBeginExecTree(bNodeTree *ntree) exec = ntreeShaderBeginExecTree_internal(&context, ntree, NODE_INSTANCE_KEY_BASE); - /* XXX this should not be necessary, but is still used for cmp/sha/tex nodes, - * which only store the ntree pointer. Should be fixed at some point! + /* XXX: this should not be necessary, but is still used for compositor/shader/texture nodes, + * which only store the `ntree` pointer. Should be fixed at some point! */ ntree->execdata = exec; diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc b/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc index 56e42708e93..30ec746c2d0 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc +++ b/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc @@ -220,7 +220,7 @@ void register_node_type_sh_tex_sky() node_type_init(&ntype, file_ns::node_shader_init_tex_sky); node_type_storage(&ntype, "NodeTexSky", node_free_standard_storage, node_copy_standard_storage); node_type_gpu(&ntype, file_ns::node_shader_gpu_tex_sky); - /* remove Vector input for Nishita */ + /* Remove vector input for Nishita sky model. */ node_type_update(&ntype, file_ns::node_shader_update_sky); nodeRegisterType(&ntype); |