Cleanup: spelling in comments, format
This commit is contained in:
parent
ef51825c06
commit
a3e1a9e2aa
|
@ -378,7 +378,7 @@ ccl_device_inline avxi hash_avxi4(avxi kx, avxi ky, avxi kz, avxi kw)
|
|||
|
||||
/* ***** Hash Prospector Hash Functions *****
|
||||
*
|
||||
* These are based on the high-quality 32-bit hash/mixings functions from
|
||||
* These are based on the high-quality 32-bit hash/mixing functions from
|
||||
* https://github.com/skeeto/hash-prospector
|
||||
*/
|
||||
|
||||
|
|
|
@ -1101,7 +1101,7 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
|
|||
if (window->getCursorGrabModeIsWarp()) {
|
||||
/* WORKAROUND:
|
||||
* Sometimes Windows ignores `SetCursorPos()` or `SendInput()` calls or the mouse event is
|
||||
* outdate. Identify these cases by checking if the cursor is not yet within bounds. */
|
||||
* outdated. Identify these cases by checking if the cursor is not yet within bounds. */
|
||||
static bool is_warping_x = false;
|
||||
static bool is_warping_y = false;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include FT_CACHE_H /* FreeType Cache. */
|
||||
#include FT_GLYPH_H
|
||||
#include FT_MULTIPLE_MASTERS_H /* Variable font support. */
|
||||
#include FT_TRUETYPE_IDS_H /* Codepoint coverage constants. */
|
||||
#include FT_TRUETYPE_IDS_H /* Code-point coverage constants. */
|
||||
#include FT_TRUETYPE_TABLES_H /* For TT_OS2 */
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
|
|
@ -572,8 +572,8 @@ struct Insertion {
|
|||
* Compute the insertion of a control point and handles in a Bezier segment without changing its
|
||||
* shape.
|
||||
* \param parameter: Factor in from 0 to 1 defining the insertion point within the segment.
|
||||
* \return Inserted point paramaters including position, and both new and updated handles for
|
||||
* neighbouring control points.
|
||||
* \return Inserted point parameters including position, and both new and updated handles for
|
||||
* neighboring control points.
|
||||
*
|
||||
* <pre>
|
||||
* handle_prev handle_next
|
||||
|
|
|
@ -249,7 +249,7 @@ static void mesh_blend_write(BlendWriter *writer, ID *id, const void *id_address
|
|||
Set<std::string> names_to_skip;
|
||||
if (!BLO_write_is_undo(writer)) {
|
||||
BKE_mesh_legacy_convert_hide_layers_to_flags(mesh);
|
||||
/* When converting to the old mesh format, don't save redunant attributes. */
|
||||
/* When converting to the old mesh format, don't save redundant attributes. */
|
||||
names_to_skip.add_multiple_new({".hide_vert", ".hide_edge", ".hide_poly"});
|
||||
}
|
||||
|
||||
|
|
|
@ -409,7 +409,7 @@ void DRW_shgroup_call_ex(DRWShadingGroup *shgroup,
|
|||
void *user_data);
|
||||
|
||||
/**
|
||||
* If ob is NULL, unit modelmatrix is assumed and culling is bypassed.
|
||||
* If ob is NULL, unit model-matrix is assumed and culling is bypassed.
|
||||
*/
|
||||
#define DRW_shgroup_call(shgroup, geom, ob) \
|
||||
DRW_shgroup_call_ex(shgroup, ob, NULL, geom, false, NULL)
|
||||
|
@ -420,8 +420,8 @@ void DRW_shgroup_call_ex(DRWShadingGroup *shgroup,
|
|||
#define DRW_shgroup_call_obmat(shgroup, geom, obmat) \
|
||||
DRW_shgroup_call_ex(shgroup, NULL, obmat, geom, false, NULL)
|
||||
|
||||
/* TODO(fclem): remove this when we have DRWView */
|
||||
/* user_data is used by DRWCallVisibilityFn defined in DRWView. */
|
||||
/* TODO(fclem): remove this when we have #DRWView */
|
||||
/* user_data is used by #DRWCallVisibilityFn defined in #DRWView. */
|
||||
#define DRW_shgroup_call_with_callback(shgroup, geom, ob, user_data) \
|
||||
DRW_shgroup_call_ex(shgroup, ob, NULL, geom, false, user_data)
|
||||
|
||||
|
|
|
@ -1545,10 +1545,10 @@ uiButViewItem *ui_block_view_find_matching_view_item_but_in_old_block(
|
|||
struct uiListType *UI_UL_cache_file_layers(void);
|
||||
|
||||
struct ID *ui_template_id_liboverride_hierarchy_make(struct bContext *C,
|
||||
struct Main *bmain,
|
||||
struct ID *owner_id,
|
||||
struct ID *id,
|
||||
const char **r_undo_push_label);
|
||||
struct Main *bmain,
|
||||
struct ID *owner_id,
|
||||
struct ID *id,
|
||||
const char **r_undo_push_label);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1319,14 +1319,15 @@ static void getVerticalAndHorizontalChange(const float norm[3],
|
|||
changes[index][1] = len_v3v3(projA, projB);
|
||||
}
|
||||
|
||||
/* by changing nonzero weights, try to move a vertex in me->mverts with index 'index' to
|
||||
* distToBe distance away from the provided plane strength can change distToBe so that it moves
|
||||
* towards distToBe by that percentage cp changes how much the weights are adjusted
|
||||
/**
|
||||
* By changing nonzero weights, try to move a vertex in `me->mverts` with index 'index' to
|
||||
* `distToBe` distance away from the provided plane strength can change `distToBe` so that it moves
|
||||
* towards `distToBe` by that percentage `cp` changes how much the weights are adjusted
|
||||
* to check the distance
|
||||
*
|
||||
* index is the index of the vertex being moved
|
||||
* norm and d are the plane's properties for the equation: ax + by + cz + d = 0
|
||||
* coord is a point on the plane
|
||||
* `index` is the index of the vertex being moved.
|
||||
* `norm` and `d` are the plane's properties for the equation: `ax + by + cz + d = 0`.
|
||||
* `coord` is a point on the plane.
|
||||
*/
|
||||
static void moveCloserToDistanceFromPlane(Depsgraph *depsgraph,
|
||||
Scene *UNUSED(scene),
|
||||
|
|
Loading…
Reference in New Issue