style cleanup - comment spelling + translate some dutch.

This commit is contained in:
Campbell Barton 2012-03-04 04:35:12 +00:00
parent 4f2976941f
commit f6ae27daef
95 changed files with 137 additions and 147 deletions

@ -1379,7 +1379,7 @@ void animsys_evaluate_action (PointerRNA *ptr, bAction *act, AnimMapper *remap,
/* calculate influence of strip based for given frame based on blendin/out values */
static float nlastrip_get_influence (NlaStrip *strip, float cframe)
{
/* sanity checks - normalise the blendin/out values? */
/* sanity checks - normalize the blendin/out values? */
strip->blendin= fabsf(strip->blendin);
strip->blendout= fabsf(strip->blendout);

@ -1114,7 +1114,7 @@ void armature_mat_world_to_pose(Object *ob, float inmat[][4], float outmat[][4])
mult_m4_m4m4(outmat, inmat, obmat);
}
/* Convert Wolrd-Space Location to Pose-Space Location
/* Convert World-Space Location to Pose-Space Location
* NOTE: this cannot be used to convert to pose-space location of the supplied
* pose-channel into its local space (i.e. 'visual'-keyframing) */
void armature_loc_world_to_pose(Object *ob, const float inloc[3], float outloc[3])
@ -1901,7 +1901,7 @@ static void splineik_init_tree_from_pchan(Scene *scene, Object *UNUSED(ob), bPos
* proportion of the total length that each bone occupies
*/
for (i = 0; i < segcount; i++) {
/* 'head' joints, travelling towards the root of the chain
/* 'head' joints, traveling towards the root of the chain
* - 2 methods; the one chosen depends on whether we've got usable lengths
*/
if ((ikData->flag & CONSTRAINT_SPLINEIK_EVENSPLITS) || (totLength == 0.0f)) {
@ -2078,14 +2078,14 @@ static void splineik_evaluate_bone(tSplineIK_Tree *tree, Scene *scene, Object *o
float raxis[3], rangle;
/* compute the raw rotation matrix from the bone's current matrix by extracting only the
* orientation-relevant axes, and normalising them
* orientation-relevant axes, and normalizing them
*/
copy_v3_v3(rmat[0], pchan->pose_mat[0]);
copy_v3_v3(rmat[1], pchan->pose_mat[1]);
copy_v3_v3(rmat[2], pchan->pose_mat[2]);
normalize_m3(rmat);
/* also, normalise the orientation imposed by the bone, now that we've extracted the scale factor */
/* also, normalize the orientation imposed by the bone, now that we've extracted the scale factor */
normalize_v3(splineVec);
/* calculate smallest axis-angle rotation necessary for getting from the
@ -2255,7 +2255,7 @@ void pchan_to_mat4(bPoseChannel *pchan, float chan_mat[4][4])
/* quats are normalised before use to eliminate scaling issues */
float quat[4];
/* NOTE: we now don't normalise the stored values anymore, since this was kindof evil in some cases
/* NOTE: we now don't normalize the stored values anymore, since this was kindof evil in some cases
* but if this proves to be too problematic, switch back to the old system of operating directly on
* the stored copy
*/

@ -1910,7 +1910,7 @@ static void samevolume_evaluate (bConstraint *con, bConstraintOb *cob, ListBase
mat4_to_size(obsize, cob->matrix);
/* calculate normalising scale factor for non-essential values */
/* calculate normalizing scale factor for non-essential values */
if (obsize[data->flag] != 0)
fac = sqrtf(volume / obsize[data->flag]) / obsize[data->flag];

@ -745,7 +745,7 @@ static void surfaceGenerateGrid(struct DynamicPaintSurface *surface)
grid->t_index = MEM_callocN(sizeof(int) * sData->total_points, "Surface Grid Target Ids");
temp_t_index = MEM_callocN(sizeof(int) * sData->total_points, "Temp Surface Grid Target Ids");
/* in case of an allocation failture abort here */
/* in case of an allocation failure abort here */
if (!grid->bounds || !grid->s_pos || !grid->s_num || !grid->t_index || !temp_s_num || !temp_t_index)
error = 1;

@ -379,7 +379,7 @@ void IDP_ConcatString(IDProperty *str1, IDProperty *append)
int newlen;
/* since ->len for strings includes the NULL byte, we have to subtract one or
* we'll get an extra null byte after each concatination operation.*/
* we'll get an extra null byte after each concatenation operation.*/
newlen = str1->len + append->len - 1;
IDP_ResizeArray(str1, newlen);
strcat(str1->data.pointer, append->data.pointer);

@ -1177,7 +1177,7 @@ static void icu_to_fcurves (ID *id, ListBase *groups, ListBase *list, IpoCurve *
case IPO_CYCLX: /* cyclic extrapolation + offset */
{
/* Add a new FModifier (Cyclic) instead of setting extend value
* as that's the new equivilant of that option.
* as that's the new equivalent of that option.
*/
FModifier *fcm= add_fmodifier(&fcu->modifiers, FMODIFIER_TYPE_CYCLES);
FMod_Cycles *data= (FMod_Cycles *)fcm->data;

@ -1579,7 +1579,7 @@ KeyBlock *key_get_named_keyblock(Key *key, const char name[])
}
/* Get RNA-Path for 'value' setting of the given ShapeKey
* NOTE: the user needs to free the returned string once they're finishe with it
* NOTE: the user needs to free the returned string once they're finish with it
*/
char *key_get_curValue_rnaPath(Key *key, KeyBlock *kb)
{

@ -1277,7 +1277,7 @@ static int distribute_threads_init_data(ParticleThread *threads, Scene *scene, D
MEM_freeN(element_sum);
/* For hair, sort by origindex (allows optimizations in rendering), */
/* For hair, sort by origindex (allows optimization's in rendering), */
/* however with virtual parents the children need to be in random order. */
if(part->type == PART_HAIR && !(part->childtype==PART_CHILD_FACES && part->parents!=0.0f)) {
COMPARE_ORIG_INDEX = NULL;

@ -86,7 +86,7 @@
typedef void ( *Shrinkwrap_ForeachVertexCallback) (DerivedMesh *target, float *co, float *normal);
/* get derived mesh */
//TODO is anyfunction that does this? returning the derivedFinal witouth we caring if its in edit mode or not?
//TODO is anyfunction that does this? returning the derivedFinal without we caring if its in edit mode or not?
DerivedMesh *object_get_derived_final(Object *ob)
{
Mesh *me= ob->data;

@ -44,7 +44,7 @@
* \subsection issues Known issues with BLI
*
* - blenlib is written in C.
* - The posix-compliancy may move to a separate lib that deals with
* - The posix-compliance may move to a separate lib that deals with
* platform dependencies. (There are other platform-dependent
* fixes as well.)
* - The file i/o has some redundant code. It should be cleaned.

@ -159,7 +159,7 @@ typedef struct PBVHVertexIter {
int *vert_indices;
/* result: these are all computed in the macro, but we assume
* that compiler optimizations will skip the ones we don't use */
* that compiler optimization's will skip the ones we don't use */
struct MVert *mvert;
float *co;
short *no;

@ -719,7 +719,7 @@ static void split_leafs(BVHNode **leafs_array, int *nth, int partitions, int spl
* This function creates an implicit tree on branches_array, the leafs are given on the leafs_array.
*
* The tree is built per depth levels. First branchs at depth 1.. then branches at depth 2.. etc..
* The reason is that we can build level N+1 from level N witouth any data dependencies.. thus it allows
* The reason is that we can build level N+1 from level N without any data dependencies.. thus it allows
* to use multithread building.
*
* To archieve this is necessary to find how much leafs are accessible from a certain branch, BVHBuildHelper
@ -1501,7 +1501,7 @@ static void dfs_raycast(BVHRayCastData *data, BVHNode *node)
//ray-bv is really fast.. and simple tests revealed its worth to test it
//before calling the ray-primitive functions
/* XXX: temporary solution for particles untill fast_ray_nearest_hit supports ray.radius */
/* XXX: temporary solution for particles until fast_ray_nearest_hit supports ray.radius */
float dist = (data->ray.radius > 0.0f) ? ray_nearest_hit(data, node->bv) : fast_ray_nearest_hit(data, node);
if(dist >= data->hit.dist) return;

@ -711,7 +711,7 @@ void axis_angle_to_mat3(float mat[3][3], const float axis[3], const float angle)
{
float nor[3], nsi[3], co, si, ico;
/* normalise the axis first (to remove unwanted scaling) */
/* normalize the axis first (to remove unwanted scaling) */
if(normalize_v3_v3(nor, axis) == 0.0f) {
unit_m3(mat);
return;
@ -1421,7 +1421,7 @@ void eulO_to_gimbal_axis(float gmat[][3], const float eul[3], const short order)
* \author Ladislav Kavan, kavanl@cs.tcd.ie
*
* Changes for Blender:
* - renaming, style changes and optimizations
* - renaming, style changes and optimization's
* - added support for scaling
*/

@ -730,7 +730,7 @@ int BLI_path_abs(char *path, const char *basepath)
/*
* Should only be done with command line paths.
* this is NOT somthing blenders internal paths support like the // prefix
* this is NOT something blenders internal paths support like the // prefix
*/
int BLI_path_cwd(char *path)
{

@ -10089,7 +10089,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
if ((main->versionfile < 245) || (main->versionfile == 245 && main->subversionfile < 5)) {
/* foreground color needs to be somthing other then black */
/* foreground color needs to be something other then black */
Scene *sce;
for(sce= main->scene.first; sce; sce=sce->id.next) {
sce->r.fg_stamp[0] = sce->r.fg_stamp[1] = sce->r.fg_stamp[2] = 0.8f;

@ -2399,7 +2399,7 @@ static bAnimChannelType ACF_GPD =
/* GPencil Layer ------------------------------------------- */
/* name for grase pencil layer entries */
/* name for grease pencil layer entries */
static void acf_gpl_name(bAnimListElem *ale, char *name)
{
bGPDlayer *gpl = (bGPDlayer *)ale->data;

@ -1985,7 +1985,7 @@ static void rename_anim_channels (bAnimContext *ac, int channel_index)
if (acf->name_prop(ale, &ptr, &prop)) {
/* actually showing the rename textfield is done on redraw,
* so here we just store the index of this channel in the
* dopesheet data, which will get utilised when drawing the
* dopesheet data, which will get utilized when drawing the
* channel...
*
* +1 factor is for backwards compat issues

@ -1285,7 +1285,7 @@ static size_t animdata_filter_gpencil_data (ListBase *anim_data, bGPdata *gpd, i
return items;
}
/* Grab all Grase Pencil datablocks in file */
/* Grab all Grease Pencil datablocks in file */
// TODO: should this be amalgamated with the dopesheet filtering code?
static size_t animdata_filter_gpencil (ListBase *anim_data, void *UNUSED(data), int filter_mode)
{

@ -70,7 +70,7 @@
* which take the data they operate on, a few callbacks defining what operations to perform.
*
* As operators which work on keyframes usually apply the same operation on all BezTriples in
* every channel, the code has been optimised providing a set of functions which will get the
* every channel, the code has been optimized providing a set of functions which will get the
* appropriate bezier-modify function to set. These functions (ANIM_editkeyframes_*) will need
* to be called before getting any channels.
*

@ -375,7 +375,7 @@ enum {
/* This helper function determines whether a new keyframe is needed */
/* Cases where keyframes should not be added:
* 1. Keyframe to be added bewteen two keyframes with similar values
* 1. Keyframe to be added between two keyframes with similar values
* 2. Keyframe to be added on frame where two keyframes are already situated
* 3. Keyframe lies at point that intersects the linear line between two keyframes
*/

@ -4738,7 +4738,7 @@ void create_vgroups_from_armature(ReportList *reports, Scene *scene, Object *ob,
if(mode == ARM_GROUPS_NAME) {
/* Traverse the bone list, trying to create empty vertex
* groups cooresponding to the bone.
* groups corresponding to the bone.
*/
bone_looper(ob, arm->bonebase.first, NULL, vgroup_add_unique_bone_cb);

@ -939,7 +939,7 @@ static float pose_propagate_get_boneHoldEndFrame (Object *ob, tPChanFCurveLink *
LinkData *ld;
float endFrame = startFrame;
/* set up optimised data-structures for searching for relevant keyframes + holds */
/* set up optimized data-structures for searching for relevant keyframes + holds */
BLI_dlrbTree_init(&keys);
BLI_dlrbTree_init(&blocks);

@ -755,7 +755,7 @@ static void pose_copy_menu(Scene *scene)
pchanact= pchan;
arm= ob->data;
/* if proxy-protected bones selected, some things (such as locks + displays) shouldn't be changable,
/* if proxy-protected bones selected, some things (such as locks + displays) shouldn't be changeable,
* but for constraints (just add local constraints)
*/
if (pose_has_protected_selected(ob, 0)) {

@ -1116,9 +1116,9 @@ static void curve_rename_fcurves(Object *obedit, ListBase *orig_curves)
nu_index++;
}
/* remove pathes for removed control points
/* remove paths for removed control points
* need this to make further step with copying non-cv related curves copying
* not touching cv's f-cruves */
* not touching cv's f-curves */
for(fcu= orig_curves->first; fcu; fcu= next) {
next= fcu->next;
@ -1261,7 +1261,7 @@ void make_editNurb(Object *obedit)
if(actkey)
editnurb->shapenr= obedit->shapenr;
/* animation could be added in editmode even if teher was no animdata i
/* animation could be added in editmode even if there was no animdata i
* object mode hence we always need CVs index be created */
init_editNurb_keyIndex(editnurb, &cu->nurb);
}
@ -1416,7 +1416,7 @@ void CURVE_OT_separate(wmOperatorType *ot)
static short isNurbselUV(Nurb *nu, int *u, int *v, int flag)
{
/* return u!=-1: 1 row in u-direction selected. U has value between 0-pntsv
* return v!=-1: 1 collumn in v-direction selected. V has value between 0-pntsu
* return v!=-1: 1 column in v-direction selected. V has value between 0-pntsu
*/
BPoint *bp;
int a, b, sel;
@ -1772,7 +1772,7 @@ static short extrudeflagNurb(EditNurb *editnurb, int flag)
nu->pntsv++;
nurbs_knot_calc_v(nu);
}
else if(v==0 || v== nu->pntsu-1) { /* collumn in v-direction selected */
else if(v==0 || v== nu->pntsu-1) { /* column in v-direction selected */
ok= 1;
bpn = newbp =
(BPoint*) MEM_mallocN((nu->pntsu + 1) * nu->pntsv * sizeof(BPoint), "extrudeNurb1");
@ -3778,7 +3778,7 @@ static void merge_2_nurb(wmOperator *op, ListBase *editnurb, Nurb *nu1, Nurb *nu
return;
}
/* ok, now nu1 has the rightmost collumn and nu2 the leftmost collumn selected */
/* ok, now nu1 has the rightmost column and nu2 the leftmost column selected */
/* maybe we need a 'v' flip of nu2? */
bp1= nu1->bp+nu1->pntsu-1;

@ -578,7 +578,7 @@ static void gp_stroke_newfrombuffer (tGPsdata *p)
}
/* special case for poly line -- for already added stroke during session
* coordinates are getting added to stroke immediatelly to allow more
* coordinates are getting added to stroke immediately to allow more
* interactive behavior */
if (p->paintmode == GP_PAINTMODE_DRAW_POLY) {
if (p->flags & GP_PAINTFLAG_STROKEADDED)

@ -116,7 +116,7 @@ void glaRasterPosSafe2f (float x, float y, float known_good_x, float known_good
* (0.375, 0.375) is assumed to be within the view frustum, and the
* modelview and projection matrices are assumed to define a
* 1-to-1 mapping to screen space.
* \attention Furthmore, in the case of zoomed or unpixel aligned
* \attention Furthermore, in the case of zoomed or unpixel aligned
* images extending outside the view frustum, but still within the
* window, some portion of the image may be visible left and/or
* below of the given \a x and \a y coordinates. It is recommended

@ -263,16 +263,6 @@ void ED_vgroup_vert_add(struct Object *ob, struct bDeformGroup *dg, int vertnum
void ED_vgroup_vert_remove(struct Object *ob, struct bDeformGroup *dg, int vertnum);
float ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vertnum);
/**
* findnearestvert
*
* dist (in/out): minimal distance to the nearest and at the end, actual distance
* sel: selection bias
* if SELECT, selected vertice are given a 5 pixel bias to make them farter than unselect verts
* if 0, unselected vertice are given the bias
* strict: if 1, the vertice corresponding to the sel parameter are ignored and not just biased
*/
struct BMVert *EDBM_findnearestvert(struct ViewContext *vc, int *dist, short sel, short strict);
struct BMEdge *EDBM_findnearestedge(struct ViewContext *vc, int *dist);
struct BMFace *EDBM_findnearestface(struct ViewContext *vc, int *dist);

@ -456,7 +456,7 @@ static int ui_but_float_precision(uiBut *but, double value)
prec= (but->hardmax < 10.001f) ? 3 : 2;
}
/* check on the number of decimal places neede to display
/* check on the number of decimal places need to display
* the number, this is so 0.00001 is not displayed as 0.00,
* _but_, this is only for small values si 10.0001 will not get
* the same treatment */
@ -2373,7 +2373,7 @@ static void ui_block_do_align_but(uiBut *first, short nr)
}
}
/* rows==0: 1 row, cols==0: 1 collumn */
/* rows==0: 1 row, cols==0: 1 column */
/* note; how it uses 'flag' in loop below (either set it, or OR it) is confusing */
for(but=first, prev=NULL; but && but->alignnr == nr; prev=but, but=but->next) {

@ -3038,7 +3038,7 @@ static int ui_do_but_BLOCK(bContext *C, uiBut *but, uiHandleButtonData *data, wm
* to cancel changes made to this button, but changing state to EXIT also makes no button active for
* a while which leads to triggering operator when doing fast scrolling mouse wheel.
* using post activate stuff from button allows to make button be active again after checking for all
* all that mouse leave and cancel stuff, so wuick scrool wouldnt't be an issue anumore.
* all that mouse leave and cancel stuff, so quick scroll wouldnt't be an issue anymore.
* same goes for scrolling wheel in another direction below (sergey)
*/
data->postbut= but;

@ -487,7 +487,7 @@ static void UI_OT_reports_to_textblock(wmOperatorType *ot)
/* ------------------------------------------------------------------------- */
/* EditSource Utility funcs and operator,
* note, this includes itility functions and button matching checks */
* note, this includes utility functions and button matching checks */
struct uiEditSourceStore {
uiBut but_orig;

@ -641,7 +641,7 @@ typedef struct PanelSort {
/* note about sorting;
* the sortorder has a lower value for new panels being added.
* however, that only works to insert a single panel, when more new panels get
* added the coordinates of existing panels and the previously stored to-be-insterted
* added the coordinates of existing panels and the previously stored to-be-inserted
* panels do not match for sorting */
static int find_leftmost_panel(const void *a1, const void *a2)

@ -66,7 +66,7 @@
* "Header", or "Listview" or "Toolbar". Properties of Style definitions
* are:
*
* - default collumn properties, internal spacing, aligning, min/max width
* - default column properties, internal spacing, aligning, min/max width
* - button alignment rules (for groups)
* - label placement rules
* - internal labeling or external labeling default

@ -981,7 +981,7 @@ void UI_view2d_view_ortho(View2D *v2d)
float xofs, yofs;
/* pixel offsets (-0.375f) are needed to get 1:1 correspondence with pixels for smooth UI drawing,
* but only applied where requsted
* but only applied where requested
*/
/* XXX brecht: instead of zero at least use a tiny offset, otherwise
* pixel rounding is effectively random due to float inaccuracy */
@ -1020,7 +1020,7 @@ void UI_view2d_view_orthoSpecial(ARegion *ar, View2D *v2d, short xaxis)
float xofs, yofs;
/* pixel offsets (-0.375f) are needed to get 1:1 correspondence with pixels for smooth UI drawing,
* but only applied where requsted
* but only applied where requested
*/
/* XXX temp (ton) */
xofs= 0.0f; // (v2d->flag & V2D_PIXELOFS_X) ? 0.375f : 0.0f;

@ -1126,7 +1126,7 @@ static int view_borderzoom_exec(bContext *C, wmOperator *op)
}
else /* if (gesture_mode == GESTURE_MODAL_OUT) */ {
/* zoom out:
* - the current 'cur' rect coordinates are going to end upwhere the 'rect' ones are,
* - the current 'cur' rect coordinates are going to end up where the 'rect' ones are,
* but the 'cur' rect coordinates will need to be adjusted to take in more of the view
* - calculate zoom factor, and adjust using center-point
*/

@ -365,7 +365,7 @@ static unsigned int findnearestvert__backbufIndextest(void *handle, unsigned int
*
* dist (in/out): minimal distance to the nearest and at the end, actual distance
* sel: selection bias
* if SELECT, selected vertice are given a 5 pixel bias to make them farter than unselect verts
* if SELECT, selected vertice are given a 5 pixel bias to make them further than unselect verts
* if 0, unselected vertice are given the bias
* strict: if 1, the vertice corresponding to the sel parameter are ignored and not just biased
*/

@ -960,7 +960,7 @@ void EDBM_free_uv_element_map(UvElementMap *element_map)
}
/* last_sel, use em->act_face otherwise get the last selected face in the editselections
* at the moment, last_sel is mainly useful for gaking sure the space image dosnt flicker */
* at the moment, last_sel is mainly useful for making sure the space image dosnt flicker */
MTexPoly *EDBM_get_active_mtexpoly(BMEditMesh *em, BMFace **r_act_efa, int sloppy)
{
BMFace *efa = NULL;

@ -1569,7 +1569,7 @@ static int knife_update_active(knifetool_opdata *kcd)
/* if no hits are found this would normally default to (0,0,0) so instead
* get a point at the mouse ray closest to the previous point.
* Note that drawing lines in `free-space` isn't properly supported
* but theres no guarantee (0,0,0) has any geometry either - campell */
* but theres no guarantee (0,0,0) has any geometry either - campbell */
if (kcd->curvert == NULL && kcd->curedge == NULL) {
float origin[3], ray[3], co[3];

@ -465,7 +465,7 @@ int mouse_mball(bContext *C, const int mval[2], int extend)
}
/* When some metaelem was found, then it is necessary to select or
* deselet it. */
* deselect it. */
if(act) {
if(extend==0) {
/* Deselect all existing metaelems */

@ -453,7 +453,7 @@ void ED_object_enter_editmode(bContext *C, int flag)
/*
* The function object_data_is_libdata make a problem here, the
* check for ob->proxy return 0 and let blender enter to edit mode
* this causa a crash when you try leave the edit mode.
* this causes a crash when you try leave the edit mode.
* The problem is that i can't remove the ob->proxy check from
* object_data_is_libdata that prevent the bugfix #6614, so
* i add this little hack here.

@ -450,7 +450,7 @@ static int modifier_apply_shape(ReportList *reports, Scene *scene, Object *ob, M
* It should be ridiculously easy to extract the original verts that we want
* and form the shape data. We can probably use the CD KEYINDEX layer (or
* whatever I ended up calling it, too tired to check now), though this would
* by necassity have to make some potentially ugly assumptions about the order
* by necessity have to make some potentially ugly assumptions about the order
* of the mesh data :-/ you can probably assume in 99% of cases that the first
* element of a given index is the original, and any subsequent duplicates are
* copies/interpolates, but that's an assumption that would need to be tested

@ -492,7 +492,7 @@ static short select_grouped_object_hooks(bContext *C, Object *ob)
return changed;
}
/* Select objects woth the same parent as the active (siblings),
/* Select objects with the same parent as the active (siblings),
* parent can be NULL also */
static short select_grouped_siblings(bContext *C, Object *ob)
{

@ -118,7 +118,7 @@ static void object_clear_rot(Object *ob)
if ((ob->protectflag & OB_LOCK_ROTZ) == 0)
ob->quat[3]= ob->dquat[3]= 0.0f;
// TODO: does this quat need normalising now?
// TODO: does this quat need normalizing now?
}
else {
/* the flag may have been set for the other modes, so just ignore the extra flag... */

@ -1604,7 +1604,7 @@ void ED_vgroup_mirror(Object *ob, const short mirror_weights, const short flip_v
goto cleanup;
}
/* unlike editmesh we know that by only looping over the first hald of
/* unlike editmesh we know that by only looping over the first half of
* the 'u' indices it will cover all points except the middle which is
* ok in this case */
pntsu_half= lt->pntsu / 2;
@ -2151,7 +2151,7 @@ void OBJECT_OT_vertex_group_assign(wmOperatorType *ot)
/* flags */
/* redo operator will fail in this case because vertex group assignment
* isn't stored in local edit mode stack and toggling "new" property will
* lead to creating plenty of new veretx groups (see [#29527], sergey) */
* lead to creating plenty of new vertex groups (see [#29527], sergey) */
ot->flag= /*OPTYPE_REGISTER|*/OPTYPE_UNDO;
/* properties */
@ -2191,7 +2191,7 @@ void OBJECT_OT_vertex_group_remove_from(wmOperatorType *ot)
ot->exec= vertex_group_remove_from_exec;
/* flags */
/* redo operator will fail in this case because vertex groups ssignment
/* redo operator will fail in this case because vertex groups assignment
* isn't stored in local edit mode stack and toggling "all" property will lead to
* removing vertices from all groups (see [#29527], sergey) */
ot->flag= /*OPTYPE_REGISTER|*/OPTYPE_UNDO;

@ -269,7 +269,7 @@ void DPAINT_OT_output_toggle(wmOperatorType *ot)
/*
* Do actual bake operation. Loop through to-be-baked frames.
* Returns 0 on failture.
* Returns 0 on failure.
*/
static int dynamicPaint_bakeImageSequence(bContext *C, DynamicPaintSurface *surface, Object *cObject)
{

@ -191,7 +191,7 @@ ParticleEditSettings *PE_settings(Scene *scene)
return scene->toolsettings ? &scene->toolsettings->particle : NULL;
}
/* always gets atleast the first particlesystem even if PSYS_CURRENT flag is not set
/* always gets at least the first particlesystem even if PSYS_CURRENT flag is not set
*
* note: this function runs on poll, therefor it can runs many times a second
* keep it fast! */

@ -1659,7 +1659,7 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
y= -y;
}
else {
/* for now, allow scrolling in both directions (since layouts are optimised for vertical,
/* for now, allow scrolling in both directions (since layouts are optimized for vertical,
* they often don't fit in horizontal layout)
*/
v2d->keepofs &= ~(V2D_LOCKOFS_X|V2D_LOCKOFS_Y|V2D_KEEPOFS_X|V2D_KEEPOFS_Y);

@ -2864,7 +2864,7 @@ static int match_region_with_redraws(int spacetype, int regiontype, int redraws)
/* Track Preview button is on Properties Editor in SpaceClip,
* and it's very common case when users want it be refreshing
* during playback, so asking people to enable special option
* for this is a bit ticky, so add exception here for refreshing
* for this is a bit tricky, so add exception here for refreshing
* Properties Editor for SpaceClip always */
return 1;
}

@ -825,7 +825,7 @@ static int sample_backbuf_area(ViewContext *vc, int *indexar, int totface, int x
struct ImBuf *ibuf;
int a, tot=0, index;
/* brecht: disabled this because it obviously failes for
/* brecht: disabled this because it obviously fails for
* brushes with size > 64, why is this here? */
/*if(size>64.0) size= 64.0;*/

@ -274,7 +274,7 @@ static int sculpt_get_redraw_rect(ARegion *ar, RegionView3D *rv3d,
* needed here (not in sculpt_flush_update) as it was before
* because redraw rectangle should be the same in both of
* optimized PBVH draw function and 3d view redraw (if not -- some
* mesh parts could disapper from screen (sergey) */
* mesh parts could disappear from screen (sergey) */
ss = ob->sculpt;
if(ss->cache) {
if(!BLI_rcti_is_empty(&ss->cache->previous_r))

@ -850,7 +850,7 @@ static void draw_tracking_tracks(SpaceClip *sc, ARegion *ar, MovieClip *clip,
/* UI_view2d_to_region_no_clip return integer values, this could
* lead to 1px flickering when view is locked to selection during playbeck.
* to avoid this flickering, calclate base point in the same way as it happens
* to avoid this flickering, calculate base point in the same way as it happens
* in UI_view2d_to_region_no_clip, but do it in floats here */
view2d_to_region_float(&ar->v2d, 0.0f, 0.0f, &x, &y);
@ -1317,7 +1317,7 @@ void clip_draw_grease_pencil(bContext *C, int onlyv2d)
return;
if(onlyv2d) {
/* if manual calibration is used then grase pencil data is already
/* if manual calibration is used then grease pencil data is already
* drawed in draw_distortion */
if((sc->flag&SC_MANUAL_CALIBRATION)==0 || sc->mode!=SC_MODE_DISTORTION) {
ibuf= ED_space_clip_get_buffer(sc);

@ -724,7 +724,7 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar)
Scene *scene= CTX_data_scene(C);
MovieClip *clip= ED_space_clip(sc);
/* if trcking is in progress, we should sunchronize framenr from clipuser
/* if tracking is in progress, we should sunchronize framenr from clipuser
* so latest tracked frame would be shown */
if(clip && clip->tracking_context)
BKE_tracking_sync_user(&sc->user, clip->tracking_context);

@ -1327,7 +1327,7 @@ static int track_markers_initjob(bContext *C, TrackMarkersJob *tmj, int backward
tmj->lastfra= tmj->sfra;
/* XXX: silly to store this, but this data is needed to update scene and movieclip
/* XXX: silly to store this, but this data is needed to update scene and movie-clip
* frame numbers when tracking is finished. This introduces better feedback for artists.
* Maybe there's another way to solve this problem, but can't think better way atm.
* Anyway, this way isn't more unstable as animation rendering animation

@ -193,7 +193,7 @@ void GRAPH_OT_select_all_toggle (wmOperatorType *ot)
*/
/* Borderselect only selects keyframes now, as overshooting handles often get caught too,
* which means that they may be inadvertantly moved as well. However, incl_handles overrides
* which means that they may be inadvertently moved as well. However, incl_handles overrides
* this, and allow handles to be considered independently too.
* Also, for convenience, handles should get same status as keyframe (if it was within bounds).
*/

@ -122,7 +122,7 @@ int graphop_visible_keyframes_poll (bContext *C)
for (ale = anim_data.first; ale; ale= ale->next) {
FCurve *fcu= (FCurve *)ale->data;
/* visible curves for selection must fulfull the following criteria:
/* visible curves for selection must fulfill the following criteria:
* - it has bezier keyframes
* - F-Curve modifiers do not interfere with the result too much
* (i.e. the modifier-control drawing check returns false)
@ -171,7 +171,7 @@ int graphop_editable_keyframes_poll (bContext *C)
for (ale = anim_data.first; ale; ale= ale->next) {
FCurve *fcu= (FCurve *)ale->data;
/* editable curves must fulfull the following criteria:
/* editable curves must fulfill the following criteria:
* - it has bezier keyframes
* - it must not be protected from editing (this is already checked for with the foredit flag
* - F-Curve modifiers do not interfere with the result too much

@ -1461,7 +1461,7 @@ static short draw_sensorbuttons(Object *ob, bSensor *sens, uiBlock *block, short
* proper compatibility with older .blend files. */
/* Any sensor type default is 0 but the ms enum starts in 1.
* Therefore the mosue sensor is initialized to 1 in sca.c */
* Therefore the mouse sensor is initialized to 1 in sca.c */
str= "Type %t|Left button %x1|Middle button %x2|"
"Right button %x4|Wheel Up %x5|Wheel Down %x6|Movement %x8|Mouse over %x16|Mouse over any%x32";
uiDefButS(block, MENU, B_REDR, str, xco+10, yco-44, (width*0.8f)-20, 19,
@ -4716,7 +4716,7 @@ static void logic_buttons_new(bContext *C, ARegion *ar)
/* put link button to the right */
col = uiLayoutColumn(split, 0);
/* use oldskool uiButtons for links for now */
/* use old-school uiButtons for links for now */
but= uiDefIconBut(block, LINK, 0, ICON_LINK, 0, 0, UI_UNIT_X, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
uiSetButLink(but, NULL, (void ***)&(sens->links), &sens->totlinks, LINK_SENSOR, LINK_CONTROLLER);
}

@ -1972,7 +1972,7 @@ static bNodeSocket *best_socket_output(bNodeTree *ntree, bNode *node, bNodeSocke
return NULL;
}
/* this is a bit complicated, but designed to prioritise finding
/* this is a bit complicated, but designed to prioritize finding
* sockets of higher types, such as image, first */
static bNodeSocket *best_socket_input(bNodeTree *ntree, bNode *node, int num, int replace)
{

@ -894,7 +894,7 @@ struct DrawIconArg {
static void tselem_draw_icon_uibut(struct DrawIconArg *arg, int icon)
{
/* restrict collumn clip... it has been coded by simply overdrawing, doesnt work for buttons */
/* restrict column clip... it has been coded by simply overdrawing, doesnt work for buttons */
if(arg->x >= arg->xmax) {
glEnable(GL_BLEND);
UI_icon_draw_aspect(arg->x, arg->y, icon, 1.0f, arg->alpha);

@ -701,7 +701,7 @@ static int sequencer_add_effect_strip_invoke(bContext *C, wmOperator *op, wmEven
type= RNA_enum_get(op->ptr, "type");
/* when invoking an effect strip which uses inputs,
* skip initialzing the channel from the mouse.
* skip initializing the channel from the mouse.
* Instead leave the property unset so exec() initializes it to be
* above the strips its applied to. */
if(get_sequence_effect_num_inputs(type) != 0) {

@ -2913,7 +2913,7 @@ static int sequencer_change_effect_type_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
/* can someone explain the logic behind only allowing to increse this,
/* can someone explain the logic behind only allowing to increase this,
* copied from 2.4x - campbell */
if (get_sequence_effect_num_inputs(seq->type) <
get_sequence_effect_num_inputs(new_type)

@ -1113,7 +1113,7 @@ static void calc_text_rcts(SpaceText *st, ARegion *ar, rcti *scroll, rcti *back)
scroll->ymin= 4;
scroll->ymax= 4+pix_available;
/* when resizing a vieport with the bar at the bottom to a greater height more blank lines will be added */
/* when resizing a view-port with the bar at the bottom to a greater height more blank lines will be added */
if(ltexth + blank_lines < st->top + st->viewlines) {
blank_lines = st->top + st->viewlines - ltexth;
}

@ -356,7 +356,7 @@ static float cube[8][3] = {
{ 1.0, 1.0, -1.0},
};
/* ----------------- OpenGL Circle Drawing - Tables for Optimised Drawing Speed ------------------ */
/* ----------------- OpenGL Circle Drawing - Tables for Optimized Drawing Speed ------------------ */
/* 32 values of sin function (still same result!) */
#define CIRCLE_RESOL 32
@ -750,7 +750,7 @@ static void drawcentercircle(View3D *v3d, RegionView3D *rv3d, const float co[3],
float verts[CIRCLE_RESOL][3];
/* using gldepthfunc guarantees that it does write z values,
* but not checks for it, so centers remain visible independt order of drawing */
* but not checks for it, so centers remain visible independent order of drawing */
if (v3d->zbuf) glDepthFunc(GL_ALWAYS);
glEnable(GL_BLEND);
@ -1057,7 +1057,7 @@ static void spotvolume(float lvec[3], float vvec[3], const float inp)
plane[1]= 1.0f;
/* now we've got two equations: one of a cone and one of a plane, but we have
* three unknowns. We remove one unkown by rotating the plane to z=0 (the plane normal) */
* three unknowns. We remove one unknown by rotating the plane to z=0 (the plane normal) */
/* rotate around cross product vector of (0,0,1) and plane normal, dot product degrees */
/* according definition, we derive cross product is (plane[1],-plane[0],0), en cos = plane[2]);*/
@ -2819,7 +2819,7 @@ static void draw_em_measure_stats(View3D *v3d, Object *ob, BMEditMesh *em, UnitS
if (me->drawflag & ME_DRAWEXTRA_FACEAREA) {
/* would be nice to use BM_face_area_calc, but that is for 2d faces
* so instead add up tessalation triangle areas */
* so instead add up tessellationf triangle areas */
BMFace *f;
int n;

@ -980,7 +980,7 @@ static void v3d_posearmature_buts(uiLayout *layout, Object *ob)
col = uiLayoutColumn(layout, 0);
/* XXX: RNA buts show data in native types (i.e. quats, 4-component axis/angle, etc.)
* but oldskool UI shows in eulers always. Do we want to be able to still display in Eulers?
* but old-school UI shows in eulers always. Do we want to be able to still display in Eulers?
* Maybe needs RNA/ui options to display rotations as different types... */
v3d_transform_butsR(col, &pchanptr);

@ -3542,10 +3542,10 @@ int ED_view3d_autodist_depth_seg(struct ARegion *ar, const int mval_sta[2], cons
}
/**
* Gets the view trasnformation from a camera
* Gets the view transformation from a camera
* currently dosnt take camzoom into account
*
* The dist is not modified for this function, if NULL its assimed zero
* The dist is not modified for this function, if NULL its assumed zero
*/
void ED_view3d_from_m4(float mat[][4], float ofs[3], float quat[4], float *dist)
{

@ -184,7 +184,7 @@ typedef struct FlyInfo {
/* relative view axis locking - xlock, zlock
* 0) disabled
* 1) enabled but not checking because mouse hasnt moved outside the margin since locking was checked an not needed
* 1) enabled but not checking because mouse hasn't moved outside the margin since locking was checked an not needed
* when the mouse moves, locking is set to 2 so checks are done.
* 2) mouse moved and checking needed, if no view altering is donem its changed back to 1 */
short xlock, zlock;
@ -583,7 +583,7 @@ static void flyEvent(FlyInfo *fly, wmEvent *event)
/* implement WASD keys */
case FLY_MODAL_DIR_FORWARD:
if (fly->speed < 0.0f) fly->speed= -fly->speed; /* flip speed rather than stopping, game like motion */
else if (fly->axis==2) fly->speed += fly->grid; /* increse like mousewheel if were already
else if (fly->axis==2) fly->speed += fly->grid; /* increase like mousewheel if were already
* moving in that difection*/
fly->axis= 2;
break;

@ -130,7 +130,7 @@ static void handle_view3d_lock(bContext *C)
scene->layact= v3d->layact;
scene->camera= v3d->camera;
/* not through notifiery, listener don't have context
/* not through notifier, listener don't have context
* and non-open screens or spaces need to be updated too */
BKE_screen_view3d_main_sync(&bmain->screen, scene);

@ -2520,7 +2520,7 @@ static void pose_circle_select(ViewContext *vc, int select, const int mval[2], f
ED_view3d_init_mats_rv3d(vc->obact, vc->rv3d); /* for foreach's screen/vert projection */
/* check each PoseChannel... */
// TODO: could be optimised at some point
// TODO: could be optimized at some point
for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) {
short sco1[2], sco2[2], didpoint=0;
float vec[3];
@ -2592,7 +2592,7 @@ static void armature_circle_select(ViewContext *vc, int select, const int mval[2
ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */
/* check each EditBone... */
// TODO: could be optimised at some point
// TODO: could be optimized at some point
for (ebone= arm->edbo->first; ebone; ebone=ebone->next) {
short sco1[2], sco2[2], didpoint=0;
float vec[3];

@ -5066,7 +5066,7 @@ int Mirror(TransInfo *t, const int UNUSED(mval[2]))
char str[200];
/*
* OPTIMISATION:
* OPTIMIZATION:
* This still recalcs transformation on mouse move
* while it should only recalc on constraint change
* */

@ -1041,7 +1041,7 @@ int getConstraintSpaceDimension(TransInfo *t)
return n;
/*
* Someone willing to do it criptically could do the following instead:
* Someone willing to do it cryptically could do the following instead:
*
* return t->con & (CON_AXIS0|CON_AXIS1|CON_AXIS2);
*

@ -2286,7 +2286,7 @@ void flushTransNodes(TransInfo *t)
/* *** SEQUENCE EDITOR *** */
/* commented _only_ because the meta may have animaion data which
/* commented _only_ because the meta may have animation data which
* needs moving too [#28158] */
#define SEQ_TX_NESTED_METAS
@ -2404,7 +2404,7 @@ static void UVsToTransData(SpaceImage *sima, TransData *td, TransData2D *td2d, f
ED_space_image_uv_aspect(sima, &aspx, &aspy);
/* uv coords are scaled by aspects. this is needed for rotations and
* proportional editing to be consistent with the stretchted uv coords
* proportional editing to be consistent with the stretched uv coords
* that are displayed. this also means that for display and numinput,
* and when the the uv coords are flushed, these are converted each time */
td2d->loc[0] = uv[0]*aspx;
@ -3175,7 +3175,7 @@ static void createTransActionData(bContext *C, TransInfo *t)
for (ale= anim_data.first; ale; ale= ale->next) {
AnimData *adt= ANIM_nla_mapping_get(&ac, ale);
/* convert current-frame to action-time (slightly less accurate, espcially under
/* convert current-frame to action-time (slightly less accurate, especially under
* higher scaling ratios, but is faster than converting all points)
*/
if (adt)
@ -3231,7 +3231,7 @@ static void createTransActionData(bContext *C, TransInfo *t)
AnimData *adt= ANIM_nla_mapping_get(&ac, ale);
FCurve *fcu= (FCurve *)ale->key_data;
/* convert current-frame to action-time (slightly less accurate, espcially under
/* convert current-frame to action-time (slightly less accurate, especially under
* higher scaling ratios, but is faster than converting all points)
*/
if (adt)
@ -3402,7 +3402,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t)
AnimData *adt= ANIM_nla_mapping_get(&ac, ale);
FCurve *fcu= (FCurve *)ale->key_data;
/* convert current-frame to action-time (slightly less accurate, espcially under
/* convert current-frame to action-time (slightly less accurate, especially under
* higher scaling ratios, but is faster than converting all points)
*/
if (adt)
@ -3493,7 +3493,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t)
FCurve *fcu= (FCurve *)ale->key_data;
short intvals= (fcu->flag & FCURVE_INT_VALUES);
/* convert current-frame to action-time (slightly less accurate, espcially under
/* convert current-frame to action-time (slightly less accurate, especially under
* higher scaling ratios, but is faster than converting all points)
*/
if (adt)

@ -653,14 +653,14 @@ static float screen_aligned(RegionView3D *rv3d, float mat[][4])
}
/* radring = radius of donut rings
/* radring = radius of doughnut rings
* radhole = radius hole
* start = starting segment (based on nrings)
* end = end segment
* nsides = amount of points in ring
* nrigns = amount of rings
*/
static void partial_donut(float radring, float radhole, int start, int end, int nsides, int nrings)
static void partial_doughnut(float radring, float radhole, int start, int end, int nsides, int nrings)
{
float theta, phi, theta1;
float cos_theta, sin_theta;
@ -1024,7 +1024,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
preOrthoFront(ortho, rv3d->twmat, 2);
if(G.f & G_PICKSEL) glLoadName(MAN_ROT_Z);
manipulator_setcolor(v3d, 'Z', colcode, 255);
partial_donut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
partial_doughnut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
postOrtho(ortho);
}
/* X circle */
@ -1033,7 +1033,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
if(G.f & G_PICKSEL) glLoadName(MAN_ROT_X);
glRotatef(90.0, 0.0, 1.0, 0.0);
manipulator_setcolor(v3d, 'X', colcode, 255);
partial_donut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
partial_doughnut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
glRotatef(-90.0, 0.0, 1.0, 0.0);
postOrtho(ortho);
}
@ -1043,7 +1043,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
if(G.f & G_PICKSEL) glLoadName(MAN_ROT_Y);
glRotatef(-90.0, 1.0, 0.0, 0.0);
manipulator_setcolor(v3d, 'Y', colcode, 255);
partial_donut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
partial_doughnut(cusize/4.0f, 1.0f, 0, 48, 8, 48);
glRotatef(90.0, 1.0, 0.0, 0.0);
postOrtho(ortho);
}
@ -1060,7 +1060,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
if(G.f & G_PICKSEL) glLoadName(MAN_ROT_Z);
manipulator_setcolor(v3d, 'Z', colcode, 255);
partial_donut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
partial_doughnut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
glPopMatrix();
postOrtho(ortho);
@ -1075,7 +1075,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
glRotatef(90.0, 1.0, 0.0, 0.0);
glRotatef(90.0, 0.0, 0.0, 1.0);
partial_donut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
partial_doughnut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
glPopMatrix();
postOrtho(ortho);
@ -1090,7 +1090,7 @@ static void draw_manipulator_rotate(View3D *v3d, RegionView3D *rv3d, int moving,
glRotatef(-90.0, 0.0, 1.0, 0.0);
glRotatef(90.0, 0.0, 0.0, 1.0);
partial_donut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
partial_doughnut(0.7f*cusize, 1.0f, 31, 33, 8, 64);
glPopMatrix();
postOrtho(ortho);

@ -126,7 +126,7 @@ void undo_editmode_push(bContext *C, const char *name,
int nr;
uintptr_t memused, totmem, maxmem;
/* at first here was code to prevent an "original" key to be insterted twice
/* at first here was code to prevent an "original" key to be inserted twice
* this was giving conflicts for example when mesh changed due to keys or apply */
/* remove all undos after (also when curundo==NULL) */

@ -52,7 +52,7 @@
* - File I/O must be done externally. The module uses FILE*'s to
* direct input/output.
* - Platform dependency is limited. Some minor patches for
* amiga and Irix are present. A 'posix-compliancy-patch'
* amiga and Irix are present. A 'posix-compliance-patch'
* provides the interface to windows.
*
* \section dependencies Dependencies

@ -197,7 +197,7 @@ typedef struct wmWindow {
ListBase gesture; /* gesture stuff */
} wmWindow;
/* should be somthing like DNA_EXCLUDE
/* should be something like DNA_EXCLUDE
* but the preprocessor first removes all comments, spaces etc */
#

@ -844,7 +844,7 @@ static int calculate_structlens(int firststruct)
structpoin= structs[a];
structtype= structpoin[0];
/* length unkown yet */
/* length unknown yet */
if(typelens[structtype]==0) {
printf(" %s\n", types[structtype]);
}

@ -2905,7 +2905,7 @@ static void rna_def_space_clip(BlenderRNA *brna)
RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_LOCK_TIMECURSOR);
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL);
/* show markers pathes */
/* show markers paths */
prop= RNA_def_property(srna, "show_track_path", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_TRACK_PATH);
RNA_def_property_ui_text(prop, "Show Track Path", "Show path of how track moves");

@ -198,7 +198,7 @@ static void sphere_do(
* tiny optimization: the code is separated (with parts repeated)
* in two possible cases:
* with or w/o a vgroup. With lots of if's in the code below,
* further optimizations are possible, if needed */
* further optimization's are possible, if needed */
if (dvert) { /* with a vgroup */
MDeformVert *dv= dvert;
float fac_orig = fac;
@ -396,7 +396,7 @@ static void cuboid_do(
* tiny optimization: the code is separated (with parts repeated)
* in two possible cases:
* with or w/o a vgroup. With lots of if's in the code below,
* further optimizations are possible, if needed */
* further optimization's are possible, if needed */
if (dvert) { /* with a vgroup */
float fac_orig = fac;
for (i = 0; i < numVerts; i++) {

@ -345,7 +345,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
/* Notice!
*
* Since we are only ordering the edges here it can avoid mallocing the
* extra space by abusing the vert array berfore its filled with new verts.
* extra space by abusing the vert array before its filled with new verts.
* The new array for vert_connect must be at least sizeof(ScrewVertConnect) * totvert
* and the size of our resulting meshes array is sizeof(MVert) * totvert * 3
* so its safe to use the second 2 thrids of MVert the array for vert_connect,

@ -225,7 +225,7 @@ void weightvg_do_mask(int num, const int *indices, float *org_w, const float *ne
/* Applies weights to given vgroup (defgroup), and optionnaly add/remove vertices from the group.
/* Applies weights to given vgroup (defgroup), and optionally add/remove vertices from the group.
* If dws is not NULL, it must be an array of MDeformWeight pointers of same length as weights (and
* defgrp_idx can then have any value).
* If indices is not NULL, it must be an array of same length as weights, mapping to the real

@ -77,7 +77,7 @@ void weightvg_do_mask(int num, const int *indices, float *org_w, const float *ne
int tex_use_channel, int tex_mapping, Object *tex_map_object,
const char *tex_uvlayer_name);
/* Applies weights to given vgroup (defgroup), and optionnaly add/remove vertices from the group.
/* Applies weights to given vgroup (defgroup), and optionally add/remove vertices from the group.
* If indices is not NULL, it must be a table of same length as weights, mapping to the real
* vertex index (in case the weight table does not cover the whole vertices...).
*/

@ -294,7 +294,7 @@ void shade_input_set_triangle_i(ShadeInput *shi, ObjectInstanceRen *obi, VlakRen
}
}
/* note, facenr declared volatile due to over-eager -O2 optimizations
/* note, facenr declared volatile due to over-eager -O2 optimization's
* on cygwin (particularly -frerun-cse-after-loop)
*/

@ -284,7 +284,7 @@ static inline int lc_to_ms_I(int x, int y, int z, int *n)
/* *** multiple scattering approximation *** */
/* get the total amount of light energy in the light cache. used to normalise after multiple scattering */
/* get the total amount of light energy in the light cache. used to normalize after multiple scattering */
static float total_ss_energy(Render *re, int do_test_break, VolumePrecache *vp)
{
int x, y, z;

@ -365,7 +365,7 @@ static float vol_get_phasefunc(ShadeInput *UNUSED(shi), float g, const float w[3
const float normalize = 0.25f; // = 1.f/4.f = M_PI/(4.f*M_PI)
/* normalization constant is 1/4 rather than 1/4pi, since
* Blender's shading system doesn't normalise for
* Blender's shading system doesn't normalize for
* energy conservation - eg. multiplying by pdf ( 1/pi for a lambert brdf ).
* This means that lambert surfaces in Blender are pi times brighter than they 'should be'
* and therefore, with correct energy conservation, volumes will darker than other solid objects,

@ -549,7 +549,7 @@ void BL_ArmatureObject::GetPose(bPose **pose)
if (!*pose) {
/* probably not to good of an idea to
* duplicate everying, but it clears up
* duplicate everything, but it clears up
* a crash and memory leakage when
* &BL_ActionActuator::m_pose is freed
*/

@ -114,7 +114,7 @@ class SCA_Joystick
void DestroyJoystickDevice(void);
/**
* fills the axis mnember values
* fills the axis member values
*/
void pFillButtons(void);

@ -60,7 +60,7 @@ public:
/**
* Checks whether a mouse button is depressed. Ignores requests on non-
* mouse related evenst. Can also flag mouse movement.
* mouse related events. Can also flag mouse movement.
*/
bool IsPressed(SCA_IInputDevice::KX_EnumInputs inputcode);
virtual void NextFrame();

@ -155,8 +155,8 @@ static void Kx_VecUpMat3(float vec[3], float mat[][3], short axis)
float inp;
short cox = 0, coy = 0, coz = 0;
/* up varieeren heeft geen zin, is eigenlijk helemaal geen up!
* zie VecUpMat3old
/* up range has no meaning, is not really up!
* see: VecUpMat3old
*/
if(axis==0) {

@ -175,7 +175,7 @@ bool KX_ConstraintActuator::Update(double curtime, bool frame)
/* low-pass filtered time response, if the damp time is unequal to 0. */
/* Having to retrieve location/rotation and setting it afterwards may not */
/* be efficient enough... Somthing to look at later. */
/* be efficient enough... Something to look at later. */
KX_GameObject *obj = (KX_GameObject*) GetParent();
MT_Point3 position = obj->NodeGetWorldPosition();
MT_Point3 newposition;

@ -155,7 +155,7 @@ public:
);
/**
* Compute an OpenGl compatable 4x4 matrix. Has the
* Compute an OpenGl compatible 4x4 matrix. Has the
* side effect of storing the result internally. The
* memory for the matrix remains the property of this class.
*/

@ -393,7 +393,7 @@ void KX_KetsjiEngine::RenderDome()
}
/**
* Ketsji Init(), Initializes datastructures and converts data from
* Ketsji Init(), Initializes data-structures and converts data from
* Blender into Ketsji native (realtime) format also sets up the
* graphics context
*/

@ -176,7 +176,7 @@ protected:
STR_String m_sceneName;
/**
* stores the worldsettings for a scene
* stores the world-settings for a scene
*/
KX_WorldInfo* m_worldinfo;

@ -170,7 +170,7 @@ public:
) = 0;
/**
* Set the visible vieport
* Set the visible view-port
*/
virtual

@ -72,7 +72,7 @@ int RAS_Polygon::GetVertexOffsetAbs(RAS_MeshObject *mesh, int i)
{
/* hack that only works because there can only ever be 2 different
* GetDisplayArray's per mesh. if this uses a different display array to the first
* then its incices are offset.
* then its indices are offset.
* if support for edges is added back this would need to be changed. */
RAS_DisplayArray* darray= mesh->GetPolygon(0)->GetDisplayArray();

@ -105,10 +105,10 @@ typedef bool (*SG_RescheduleUpdateCallback)(
/**
* SG_Callbacks hold 2 call backs to the outside world.
* The first is meant to be called when objects are replicated.
* And allows the outside world to syncronise external objects
* And allows the outside world to synchronize external objects
* with replicated nodes and their children.
* The second is called when a node is detroyed and again
* is their for synconisation purposes
* The second is called when a node is destroyed and again
* is their for synchronization purposes
* These callbacks may both be NULL.
* The efficacy of this approach has not been proved some
* alternatives might be to perform all replication and destruction
@ -226,9 +226,9 @@ public:
/**
* Get the client object associated with this
* node. This interface allows you to associate
* arbitray external objects with this node. They are
* arbitrary external objects with this node. They are
* passed to the callback functions when they are
* activated so you can syncronise these external objects
* activated so you can synchronize these external objects
* upon replication and destruction
* This may be NULL.
*/
@ -246,7 +246,7 @@ public:
/**
* Set the client object for this node. This is just a
* pointer to an object allocated that should exist for
* the duration of the lifetime of this object, or untill
* the duration of the lifetime of this object, or until
* this function is called again.
*/

@ -126,7 +126,7 @@ public:
* SG_TreeFactory generates an SG_Tree from a list of SG_Nodes.
* It joins pairs of SG_Nodes to minimise the size of the resultant
* bounding box.
* cf building an optimised Huffman tree.
* cf building an optimized Huffman tree.
* \warning O(n^3)!!!
*/
class SG_TreeFactory

@ -294,7 +294,7 @@ int VideoFFmpeg::openStream(const char *filename, AVInputFormat *inputFormat, AV
/*
* This thread is used to load video frame asynchronously.
* It provides a frame caching service.
* The main thread is responsible for positionning the frame pointer in the
* The main thread is responsible for positioning the frame pointer in the
* file correctly before calling startCache() which starts this thread.
* The cache is organized in two layers: 1) a cache of 20-30 undecoded packets to keep
* memory and CPU low 2) a cache of 5 decoded frames.