Cleanup: spelling in comments
This commit is contained in:
@@ -93,7 +93,7 @@ void BKE_object_defgroup_unique_name(bDeformGroup *dg, Object *ob);
|
||||
|
||||
MDeformWeight *BKE_defvert_find_index(const MDeformVert *dv, int defgroup);
|
||||
/**
|
||||
* Ensures that `dv` has a deform weight entry for the specified defweight group.
|
||||
* Ensures that `dv` has a deform weight entry for the specified group (`defgroup`).
|
||||
*
|
||||
* \note this function is mirrored in editmesh_tools.cc, for use for edit-vertices.
|
||||
*/
|
||||
|
||||
@@ -626,7 +626,7 @@ constexpr bool operator>=(StringRef a, StringRef b)
|
||||
* \{ */
|
||||
|
||||
/**
|
||||
* Support using the fmt library with #StringRef and implicitly also #StringRefNull.
|
||||
* Support using the `fmt` library with #StringRef and implicitly also #StringRefNull.
|
||||
*/
|
||||
inline std::string_view format_as(StringRef str)
|
||||
{
|
||||
|
||||
@@ -219,7 +219,7 @@ void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
|
||||
/* During undo the sequence strips might obtain a new session ID, which will disallow the
|
||||
* audio handles to be re-used. Tag for the audio and sequence update to ensure the audio
|
||||
* handles are open.
|
||||
* MOTE: This is not something shat should be required, and perhaps indicates a weakness in
|
||||
* NOTE: This is not something that should be required, and perhaps indicates a weakness in
|
||||
* design somewhere else. For the cause of the problem check #117760. */
|
||||
flag |= ID_RECALC_AUDIO | ID_RECALC_SEQUENCER_STRIPS;
|
||||
}
|
||||
|
||||
@@ -1273,14 +1273,14 @@ bool ShadowModule::shadow_update_finished()
|
||||
{
|
||||
if (inst_.is_viewport()) {
|
||||
/* For viewport, only run the shadow update once per redraw.
|
||||
* This avoids the stall from the readback and freezes from long shadow update. */
|
||||
* This avoids the stall from the read-back and freezes from long shadow update. */
|
||||
return true;
|
||||
}
|
||||
|
||||
int max_updated_view_count = tilemap_pool.tilemaps_data.size() * SHADOW_TILEMAP_LOD;
|
||||
if (max_updated_view_count <= SHADOW_VIEW_MAX) {
|
||||
/* There is enough shadow views to cover all tilemap updates.
|
||||
* No readback needed as it is guaranteed that all of them will be updated. */
|
||||
/* There is enough shadow views to cover all tile-map updates.
|
||||
* No read-back needed as it is guaranteed that all of them will be updated. */
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -467,7 +467,7 @@ void gbuffer_additional_info_load(inout GBufferReader gbuf, samplerGBufferNormal
|
||||
*
|
||||
* \{ */
|
||||
|
||||
/* Outputing dummy closure is required for correct render passes in case of unlit materials. */
|
||||
/** Outputting dummy closure is required for correct render passes in case of unlit materials. */
|
||||
void gbuffer_closure_unlit_pack(inout GBufferWriter gbuf, vec3 N)
|
||||
{
|
||||
gbuffer_append_closure(gbuf, GBUF_UNLIT);
|
||||
|
||||
@@ -2284,7 +2284,7 @@ uiLayout *uiLayoutPanelProp(const bContext *C,
|
||||
/**
|
||||
* Variant of #uiLayoutPanelProp that automatically stores the open-close-state in the root
|
||||
* panel. When a dynamic number of panels is required, it's recommended to use #uiLayoutPanelProp
|
||||
* instead of passing in generated idnames.
|
||||
* instead of passing in generated id names.
|
||||
*
|
||||
* \param idname: String that identifies the open-close-state in the root panel.
|
||||
*/
|
||||
|
||||
@@ -640,7 +640,7 @@ static void draw_vectorscope_graticule(ARegion *region, SeqQuadsBatch &quads, co
|
||||
const float w = BLI_rctf_size_x(&area);
|
||||
const float h = BLI_rctf_size_y(&area);
|
||||
const float2 center{BLI_rctf_cent_x(&area), BLI_rctf_cent_y(&area)};
|
||||
/* Vectorscope image is scaled over UV range (+/-0.615). */
|
||||
/* Vector-scope image is scaled over UV range (+/-0.615). */
|
||||
const float radius = ((w < h) ? w : h) * 0.5f * (0.5f / 0.615f);
|
||||
|
||||
/* Precalculate circle points/colors. */
|
||||
|
||||
Reference in New Issue
Block a user