Cleanup: spelling

This commit is contained in:
Campbell Barton
2020-03-06 11:40:37 +11:00
parent 6c623b0e8c
commit 8574d68aa0
7 changed files with 23 additions and 18 deletions

View File

@@ -1708,8 +1708,8 @@ void CUDADevice::adaptive_sampling_filter(uint filter_sample,
{
const int num_threads_per_block = functions.adaptive_num_threads_per_block;
/* These are a series of tiny kernels because there is no grid synchronisation
* from within a kernel, so multiple kernel launches it is.*/
/* These are a series of tiny kernels because there is no grid synchronization
* from within a kernel, so multiple kernel launches it is. */
uint total_work_size = wtile->h * wtile->w;
void *args2[] = {&d_wtile, &filter_sample, &total_work_size};
uint num_blocks = divide_up(total_work_size, num_threads_per_block);

View File

@@ -2442,8 +2442,10 @@ void vec_roll_to_mat3(const float vec[3], const float roll, float mat[3][3])
vec_roll_to_mat3_normalized(nor, roll, mat);
}
/* recursive part, calculates restposition of entire tree of children */
/* used by exiting editmode too */
/**
* Recursive part, calculates rest-position of entire tree of children.
* \note Used when exiting edit-mode too.
*/
void BKE_armature_where_is_bone(Bone *bone, const Bone *bone_parent, const bool use_recursion)
{
float vec[3];
@@ -2914,7 +2916,7 @@ void BKE_pose_where_is(struct Depsgraph *depsgraph, Scene *scene, Object *ob)
ctime = BKE_scene_frame_get(scene); /* not accurate... */
/* In editmode or restposition we read the data from the bones */
/* In edit-mode or rest-position we read the data from the bones. */
if (arm->edbo || (arm->flag & ARM_RESTPOS)) {
for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) {
bone = pchan->bone;

View File

@@ -74,8 +74,8 @@ typedef struct DLRBT_Tree {
/* Return -1, 0, 1 for whether the given data is less than,
* equal to, or greater than the given node.
* - node: <DLRBT_Node> the node to compare to
* - data: pointer to the relevant data or values stored in the bitpattern
* - node: <DLRBT_Node> the node to compare to.
* - data: pointer to the relevant data or values stored in the bit-pattern.
* dependent on the function.
*/
typedef short (*DLRBT_Comparator_FP)(void *node, void *data);
@@ -85,9 +85,9 @@ typedef short (*DLRBT_Comparator_FP)(void *node, void *data);
*/
typedef DLRBT_Node *(*DLRBT_NAlloc_FP)(void *data);
/* Update an existing node instance accordingly to be in sync with the given data *
/* Update an existing node instance accordingly to be in sync with the given data.
* - node: <DLRBT_Node> the node to update.
* - data: Pointer to the relevant data or values stored in the bitpattern
* - data: Pointer to the relevant data or values stored in the bit-pattern.
* dependent on the function.
*/
typedef void (*DLRBT_NUpdate_FP)(void *node, void *data);

View File

@@ -677,7 +677,7 @@ static void armature_finalize_restpose(ListBase *bonelist, ListBase *editbonelis
curBone->roll = -atan2f(difmat[2][0], difmat[2][2]);
/* and set restposition again */
/* And set rest-position again. */
BKE_armature_where_is_bone(curBone, curBone->parent, false);
break;
}

View File

@@ -629,7 +629,7 @@ bool ED_object_editmode_enter_ex(Main *bmain, Scene *scene, Object *ob, int flag
bArmature *arm = ob->data;
ok = 1;
ED_armature_to_edit(arm);
/* to ensure all goes in restposition and without striding */
/* To ensure all goes in rest-position and without striding. */
arm->needs_flush_to_id = 0;

View File

@@ -208,10 +208,11 @@ typedef struct bPoseChannel_Runtime {
/* PoseChannel ------------------------------------ */
/* PoseChannel
/**
* PoseChannel
*
* A PoseChannel stores the results of Actions and transform information
* with respect to the restposition of Armature bones
* A #bPoseChannel stores the results of Actions and transform information
* with respect to the rest-position of #bArmature bones.
*/
typedef struct bPoseChannel {
struct bPoseChannel *next, *prev;
@@ -297,7 +298,7 @@ typedef struct bPoseChannel {
float disp_tail_mat[4][4];
/**
* Inverse result of constraints.
* doesn't include effect of restposition, parent, and local transform.
* doesn't include effect of rest-position, parent, and local transform.
*/
float constinv[4][4];

View File

@@ -497,7 +497,7 @@ typedef struct bPivotConstraint {
float offset[3];
/* Rotation-driven activation:
* This option provides easier one-stop setups for footrolls
* This option provides easier one-stop setups for foot-rolls.
*/
/** Rotation axes to consider for this (#ePivotConstraint_Axis). */
short rotAxis;
@@ -715,8 +715,10 @@ typedef enum eBConstraint_Flags {
typedef enum eBConstraint_SpaceTypes {
/** Default for all - worldspace. */
CONSTRAINT_SPACE_WORLD = 0,
/** For objects (relative to parent/without parent influence),
* for bones (along normals of bone, without parent/restpositions). */
/**
* For objects (relative to parent/without parent influence),
* for bones (along normals of bone, without parent/rest-positions).
*/
CONSTRAINT_SPACE_LOCAL = 1,
/** For posechannels - pose space. */
CONSTRAINT_SPACE_POSE = 2,