diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-27 10:29:57 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-27 10:29:57 +0300 |
commit | 7b6b740ace1e56a8217fb44ed9fd3cf0c0a324f4 (patch) | |
tree | 1cad6b26f7b999ad5f8dafe1002fb397d997f719 /source | |
parent | e1c0d18598546040b2c5f130d720d45d38639910 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source')
8 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/blenkernel/intern/curve_legacy_convert.cc b/source/blender/blenkernel/intern/curve_legacy_convert.cc index 193a292994d..61299f165be 100644 --- a/source/blender/blenkernel/intern/curve_legacy_convert.cc +++ b/source/blender/blenkernel/intern/curve_legacy_convert.cc @@ -132,7 +132,7 @@ Curves *curve_legacy_to_curves(const Curve &curve_legacy, const ListBase &nurbs_ }); }; - /* Note: For curve handles, legacy curves can end up in invalid situations where the handle + /* NOTE: For curve handles, legacy curves can end up in invalid situations where the handle * positions don't agree with the types because of evaluation, or because one-sided aligned * handles weren't considered. While recalculating automatic handles to fix those situations * is an option, currently this opts not to for the sake of flexibility. */ diff --git a/source/blender/blenkernel/intern/object.cc b/source/blender/blenkernel/intern/object.cc index 94b606d6a02..e87b43c627c 100644 --- a/source/blender/blenkernel/intern/object.cc +++ b/source/blender/blenkernel/intern/object.cc @@ -2273,7 +2273,7 @@ Object *BKE_object_add(Main *bmain, ViewLayer *view_layer, int type, const char LayerCollection *layer_collection = BKE_layer_collection_get_active(view_layer); BKE_collection_viewlayer_object_add(bmain, view_layer, layer_collection->collection, ob); - /* Note: There is no way to be sure that #BKE_collection_viewlayer_object_add will actually + /* NOTE: There is no way to be sure that #BKE_collection_viewlayer_object_add will actually * manage to find a valid collection in given `view_layer` to add the new object to. */ Base *base = BKE_view_layer_base_find(view_layer, ob); if (base != nullptr) { diff --git a/source/blender/blenlib/BLI_index_mask_ops.hh b/source/blender/blenlib/BLI_index_mask_ops.hh index f67abb1d550..e4eece11e83 100644 --- a/source/blender/blenlib/BLI_index_mask_ops.hh +++ b/source/blender/blenlib/BLI_index_mask_ops.hh @@ -60,7 +60,7 @@ inline IndexMask find_indices_based_on_predicate(const IndexMask indices_to_chec /** * Find the true indices in a virtual array. This is a version of - * #find_indices_based_on_predicate optimised for a virtual array input. + * #find_indices_based_on_predicate optimized for a virtual array input. * * \param parallel_grain_size: The grain size for when the virtual array isn't a span or a single * value internally. This should be adjusted based on the expected cost of evaluating the virtual diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index e5dd9fb2c8b..e65b5a61299 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1244,7 +1244,7 @@ static int object_calculate_paths_exec(bContext *C, wmOperator *op) /* notifiers for updates */ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL); - /* Note: the notifier below isn't actually correct, but kept around just to be on the safe side. + /* NOTE: the notifier below isn't actually correct, but kept around just to be on the safe side. * If further testing shows it's not necessary (for both bones and objects) removal is fine. */ WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM | ND_POSE, NULL); @@ -1316,7 +1316,7 @@ static int object_update_paths_exec(bContext *C, wmOperator *op) /* notifiers for updates */ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL); - /* Note: the notifier below isn't actually correct, but kept around just to be on the safe side. + /* NOTE: the notifier below isn't actually correct, but kept around just to be on the safe side. * If further testing shows it's not necessary (for both bones and objects) removal is fine. */ WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM | ND_POSE, NULL); diff --git a/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h b/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h index e90d3dc34c5..f2744613205 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h +++ b/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h @@ -309,7 +309,7 @@ typedef struct LineartData { LineartElementLinkNode *isect_scheduled_up_to; int isect_scheduled_up_to_index; - /* Note: Data inside #pending_edges are allocated with MEM_xxx call instead of in pool. */ + /* NOTE: Data inside #pending_edges are allocated with MEM_xxx call instead of in pool. */ struct LineartPendingEdges pending_edges; int scheduled_count; @@ -382,7 +382,7 @@ typedef struct LineartObjectInfo { bool free_use_mesh; - /* Note: Data inside #pending_edges are allocated with MEM_xxx call instead of in pool. */ + /** NOTE: Data inside #pending_edges are allocated with MEM_xxx call instead of in pool. */ struct LineartPendingEdges pending_edges; } LineartObjectInfo; diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index c7b2104a6e6..7d0150c9f9e 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -1772,7 +1772,7 @@ static void lineart_add_edge_to_array_thread(LineartObjectInfo *obi, LineartEdge lineart_add_edge_to_array(&obi->pending_edges, e); } -/* Note: For simplicity, this function doesn't actually do anything if you already have data in +/* NOTE: For simplicity, this function doesn't actually do anything if you already have data in * #pe. */ static void lineart_finalize_object_edge_array_reserve(LineartPendingEdges *pe, int count) { diff --git a/source/blender/io/wavefront_obj/importer/obj_import_mesh.cc b/source/blender/io/wavefront_obj/importer/obj_import_mesh.cc index aa38a4d6715..1e0b36ae4cb 100644 --- a/source/blender/io/wavefront_obj/importer/obj_import_mesh.cc +++ b/source/blender/io/wavefront_obj/importer/obj_import_mesh.cc @@ -70,7 +70,7 @@ Object *MeshFromGeometry::create_mesh(Main *bmain, BKE_mesh_nomain_to_mesh(mesh, dst, obj, &CD_MASK_EVERYTHING, true); dst->flag |= autosmooth; - /* Note: vertex groups have to be created after final mesh is assigned to the object. */ + /* NOTE: vertex groups have to be created after final mesh is assigned to the object. */ create_vertex_groups(obj); return obj; diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index a747a5d11d8..44b642d0fcc 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -4424,7 +4424,7 @@ int rna_parameter_size(PropertyRNA *parm) int rna_parameter_size_pad(const int size) { /* Pad parameters in memory so the next parameter is properly aligned. - * This silences warnings in ubsan. More complicated logic to pack parameters + * This silences warnings in UBSAN. More complicated logic to pack parameters * more tightly in memory is unlikely to improve performance, and aligning * to the requirements for pointers is enough for all data types we use. */ const int alignment = sizeof(void *); @@ -4445,7 +4445,7 @@ void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropert #endif } else if (tot >= 8 && (tot & (tot - 1)) == 0) { - /* power of two > 8 */ + /* Power of two > 8. */ *items = MEM_recallocN_id(*items, sizeof(EnumPropertyItem) * tot * 2, __func__); #ifdef DEBUG memset((*items) + tot, 0xff, sizeof(EnumPropertyItem) * tot); @@ -4477,8 +4477,8 @@ void RNA_enum_items_add_value(EnumPropertyItem **items, for (; item->identifier; item++) { if (item->value == value) { RNA_enum_item_add(items, totitem, item); - /* break on first match - does this break anything? - * (is quick hack to get object->parent_type working ok for armature/lattice) */ + /* Break on first match - does this break anything? + * (is quick hack to get `object->parent_type` working ok for armature/lattice). */ break; } } |