Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-13 06:24:44 +0300
committerCampbell Barton <campbell@blender.org>2022-09-13 06:24:44 +0300
commit1a08a263884af2a9fba44107fcddbc70f336b02b (patch)
treede26b2d16294360c42ed76a740b4ddbc85a674e1 /source/blender
parentc05ff54795af36e04d6e9a5450d65ea8633ca48e (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/BKE_paint.h2
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c4
-rw-r--r--source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh16
-rw-r--r--source/blender/io/wavefront_obj/importer/obj_import_mtl.cc2
4 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index b2ecd28e884..eef91bacc2f 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -718,7 +718,7 @@ void BKE_sculpt_sync_face_sets_visibility_to_grids(struct Mesh *mesh,
struct SubdivCCG *subdiv_ccg);
/**
- * If a face set layer exists, initialize its visiblity (sign) from the mesh's hidden values.
+ * If a face set layer exists, initialize its visibility (sign) from the mesh's hidden values.
*/
void BKE_sculpt_face_sets_update_from_base_mesh_visibility(struct Mesh *mesh);
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index d28cefd4887..d53c0af2c54 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -1714,9 +1714,9 @@ static int gpencil_strokes_paste_exec(bContext *C, wmOperator *op)
}
}
- /* Ensure we have a frame to draw into
+ /* Ensure we have a frame to draw into.
* NOTE: Since this is an op which creates strokes,
- * we resuse active frame or add a new frame if one
+ * we reuse active frame or add a new frame if one
* doesn't exist already depending on REC button status.
*/
if (IS_AUTOKEY_ON(scene) || (gpl->actframe == NULL)) {
diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
index 0b94e4e43a3..32933a16c4d 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh
@@ -56,16 +56,16 @@ struct MTLMaterial {
std::string name;
/* Always check for negative values while importing or exporting. Use defaults if
* any value is negative. */
- float spec_exponent{-1.0f}; /* Ns */
- float3 ambient_color{-1.0f}; /* Ka */
- float3 color{-1.0f}; /* Kd */
- float3 spec_color{-1.0f}; /* Ks */
- float3 emission_color{-1.0f}; /* Ke */
- float ior{-1.0f}; /* Ni */
- float alpha{-1.0f}; /* d */
+ float spec_exponent{-1.0f}; /* `Ns` */
+ float3 ambient_color{-1.0f}; /* `Ka` */
+ float3 color{-1.0f}; /* `Kd` */
+ float3 spec_color{-1.0f}; /* `Ks` */
+ float3 emission_color{-1.0f}; /* `Ke` */
+ float ior{-1.0f}; /* `Ni` */
+ float alpha{-1.0f}; /* `d` */
int illum_mode{-1};
MTLTexMap texture_maps[(int)MTLTexMapType::Count];
- /* Only used for Normal Map node: "map_Bump". */
+ /* Only used for Normal Map node: `map_Bump`. */
float normal_strength{-1.0f};
};
diff --git a/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc b/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc
index 76568b2ddb4..2819fe9efc8 100644
--- a/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc
+++ b/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc
@@ -257,7 +257,7 @@ static void set_bsdf_socket_values(bNode *bsdf, Material *mat, const MTLMaterial
float clamped_ns = std::max(0.0f, std::min(1000.0f, mtl_mat.spec_exponent));
roughness = 1.0f - sqrt(clamped_ns / 1000.0f);
}
- /* Metallic: average of Ka components. */
+ /* Metallic: average of `Ka` components. */
float metallic = (mtl_mat.ambient_color[0] + mtl_mat.ambient_color[1] +
mtl_mat.ambient_color[2]) /
3;