Cleanup: fix typos in comments

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D7133
This commit is contained in:
2020-03-19 20:33:23 +01:00
committed by Brecht Van Lommel
parent 83f171b626
commit a1322d7c95
20 changed files with 26 additions and 26 deletions

View File

@@ -4259,7 +4259,7 @@ static void manta_smoke_calc_transparency(FluidDomainSettings *mds, ViewLayer *v
// get starting cell (light pos) // get starting cell (light pos)
if (BLI_bvhtree_bb_raycast(bv, light, voxel_center, pos) > FLT_EPSILON) { if (BLI_bvhtree_bb_raycast(bv, light, voxel_center, pos) > FLT_EPSILON) {
// we're ouside -> use point on side of domain // we're outside -> use point on side of domain
cell[0] = (int)floor(pos[0]); cell[0] = (int)floor(pos[0]);
cell[1] = (int)floor(pos[1]); cell[1] = (int)floor(pos[1]);
cell[2] = (int)floor(pos[2]); cell[2] = (int)floor(pos[2]);

View File

@@ -1279,7 +1279,7 @@ static void split_loop_nor_fan_do(LoopSplitTaskDataCommon *common_data, LoopSpli
copy_v3_v3(nor, lnor); copy_v3_v3(nor, lnor);
} }
} }
/* Extra bonus: since small-stack is local to this funcion, /* Extra bonus: since small-stack is local to this function,
* no more need to empty it at all cost! */ * no more need to empty it at all cost! */
} }
} }

View File

@@ -677,7 +677,7 @@ Object *modifiers_isDeformedByArmature(Object *ob)
} }
} }
if (amd) { /* if were still here then return the last armature */ if (amd) { /* if we're still here then return the last armature */
return amd->object; return amd->object;
} }
@@ -700,7 +700,7 @@ Object *modifiers_isDeformedByMeshDeform(Object *ob)
} }
} }
if (mdmd) { /* if were still here then return the last armature */ if (mdmd) { /* if we're still here then return the last armature */
return mdmd->object; return mdmd->object;
} }
@@ -726,7 +726,7 @@ Object *modifiers_isDeformedByLattice(Object *ob)
} }
} }
if (lmd) { /* if were still here then return the last lattice */ if (lmd) { /* if we're still here then return the last lattice */
return lmd->object; return lmd->object;
} }
@@ -752,7 +752,7 @@ Object *modifiers_isDeformedByCurve(Object *ob)
} }
} }
if (cmd) { /* if were still here then return the last curve */ if (cmd) { /* if we're still here then return the last curve */
return cmd->object; return cmd->object;
} }

View File

@@ -1,7 +1,7 @@
# ***** BEGIN GPL LICENSE BLOCK ***** # ***** BEGIN GPL LICENSE BLOCK *****
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public LicenseS # modify it under the terms of the GNU General Public Licenses
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# #
@@ -58,7 +58,7 @@ if(NOT WITH_HEADLESS)
target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES}) target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
# PNG library uses pow() and floow(), so seems -lm is required for proper # PNG library uses pow() and floow(), so seems -lm is required for proper
# workign binary. # working binary.
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
target_link_libraries(datatoc_icon m) target_link_libraries(datatoc_icon m)
endif() endif()

View File

@@ -3,7 +3,7 @@ layout(std140) uniform common_block
{ {
mat4 pastViewProjectionMatrix; mat4 pastViewProjectionMatrix;
vec4 viewVecs[2]; vec4 viewVecs[2];
vec2 mipRatio[10]; /* To correct mip level texel mis-alignement */ vec2 mipRatio[10]; /* To correct mip level texel misalignment */
/* Ambient Occlusion */ /* Ambient Occlusion */
vec4 aoParameters[2]; vec4 aoParameters[2];
/* Volumetric */ /* Volumetric */

View File

@@ -343,7 +343,7 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op)
sub_v3_v3v3(dir_a, ebone->tail, ebone->head); sub_v3_v3v3(dir_a, ebone->tail, ebone->head);
normalize_v3(dir_a); normalize_v3(dir_a);
/* find the first bone in the chane with a different direction */ /* find the first bone in the chain with a different direction */
do { do {
sub_v3_v3v3(dir_b, ebone_other->head, ebone_other->tail); sub_v3_v3v3(dir_b, ebone_other->head, ebone_other->tail);
normalize_v3(dir_b); normalize_v3(dir_b);

View File

@@ -562,7 +562,7 @@ void GPENCIL_OT_convert_old_files(struct wmOperatorType *ot);
void GPENCIL_OT_generate_weights(struct wmOperatorType *ot); void GPENCIL_OT_generate_weights(struct wmOperatorType *ot);
/* ****************************************************** */ /* ****************************************************** */
/* FILTERED ACTION DATA - TYPES ---> XXX DEPRECEATED OLD ANIM SYSTEM CODE! */ /* FILTERED ACTION DATA - TYPES ---> XXX DEPRECATED OLD ANIM SYSTEM CODE! */
/* XXX - TODO: replace this with the modern bAnimListElem... */ /* XXX - TODO: replace this with the modern bAnimListElem... */
/* This struct defines a structure used for quick access */ /* This struct defines a structure used for quick access */

View File

@@ -2482,7 +2482,7 @@ static int make_override_library_exec(bContext *C, wmOperator *op)
/* Disabled for now, according to some artist this is probably not really useful anyway. /* Disabled for now, according to some artist this is probably not really useful anyway.
* And it breaks things like objects parented to bones * And it breaks things like objects parented to bones
* (most likely due to missing proper setting of inverse parent matrix?)... */ * (most likely due to missing proper setting of inverse parent matrix?)... */
/* Note: we might even actually want to get rid of that instanciating empty... */ /* Note: we might even actually want to get rid of that instantiating empty... */
if (0 && new_ob->parent == NULL) { if (0 && new_ob->parent == NULL) {
new_ob->parent = obcollection; new_ob->parent = obcollection;
} }

View File

@@ -230,7 +230,7 @@ BLI_INLINE uint mcol_lighten(uint col_src, uint col_dst, int fac)
cp_dst = (uchar *)&col_dst; cp_dst = (uchar *)&col_dst;
cp_mix = (uchar *)&col_mix; cp_mix = (uchar *)&col_mix;
/* See if are lighter, if so mix, else don't do anything. /* See if we're lighter, if so mix, else don't do anything.
* if the paint color is darker then the original, then ignore */ * if the paint color is darker then the original, then ignore */
if (IMB_colormanagement_get_luminance_byte(cp_src) > if (IMB_colormanagement_get_luminance_byte(cp_src) >
IMB_colormanagement_get_luminance_byte(cp_dst)) { IMB_colormanagement_get_luminance_byte(cp_dst)) {
@@ -264,7 +264,7 @@ BLI_INLINE uint mcol_darken(uint col_src, uint col_dst, int fac)
cp_dst = (uchar *)&col_dst; cp_dst = (uchar *)&col_dst;
cp_mix = (uchar *)&col_mix; cp_mix = (uchar *)&col_mix;
/* See if were darker, if so mix, else don't do anything. /* See if we're darker, if so mix, else don't do anything.
* if the paint color is brighter then the original, then ignore */ * if the paint color is brighter then the original, then ignore */
if (IMB_colormanagement_get_luminance_byte(cp_src) < if (IMB_colormanagement_get_luminance_byte(cp_src) <
IMB_colormanagement_get_luminance_byte(cp_dst)) { IMB_colormanagement_get_luminance_byte(cp_dst)) {

View File

@@ -800,7 +800,7 @@ static int sound_unpack_exec(bContext *C, wmOperator *op)
int method = RNA_enum_get(op->ptr, "method"); int method = RNA_enum_get(op->ptr, "method");
bSound *sound = NULL; bSound *sound = NULL;
/* find the suppplied image by name */ /* find the supplied image by name */
if (RNA_struct_property_is_set(op->ptr, "id")) { if (RNA_struct_property_is_set(op->ptr, "id")) {
char sndname[MAX_ID_NAME - 2]; char sndname[MAX_ID_NAME - 2];
RNA_string_get(op->ptr, "id", sndname); RNA_string_get(op->ptr, "id", sndname);

View File

@@ -227,7 +227,7 @@ static int file_browse_invoke(bContext *C, wmOperator *op, const wmEvent *event)
is_relative = false; is_relative = false;
} }
/* annoying exception!, if were dealing with the user prefs, default relative to be off */ /* annoying exception!, if we're dealing with the user prefs, default relative to be off */
RNA_property_boolean_set(op->ptr, prop_relpath, is_relative); RNA_property_boolean_set(op->ptr, prop_relpath, is_relative);
} }
} }

View File

@@ -2998,7 +2998,7 @@ static int image_unpack_exec(bContext *C, wmOperator *op)
Image *ima = image_from_context(C); Image *ima = image_from_context(C);
int method = RNA_enum_get(op->ptr, "method"); int method = RNA_enum_get(op->ptr, "method");
/* find the suppplied image by name */ /* find the supplied image by name */
if (RNA_struct_property_is_set(op->ptr, "id")) { if (RNA_struct_property_is_set(op->ptr, "id")) {
char imaname[MAX_ID_NAME - 2]; char imaname[MAX_ID_NAME - 2];
RNA_string_get(op->ptr, "id", imaname); RNA_string_get(op->ptr, "id", imaname);

View File

@@ -285,7 +285,7 @@ static bool textview_draw_string(TextViewDrawState *tds,
tds->xy[1] += tds->lheight; tds->xy[1] += tds->lheight;
/* Check if were out of view bounds. */ /* Check if we're out of view bounds. */
if (tds->xy[1] > tds->scroll_ymax) { if (tds->xy[1] > tds->scroll_ymax) {
MEM_freeN(offsets); MEM_freeN(offsets);
return false; return false;

View File

@@ -89,7 +89,7 @@ typedef struct View3DCameraControl {
/* backup the views quat in case the user cancels flying in non camera mode. */ /* backup the views quat in case the user cancels flying in non camera mode. */
float rot_backup[4]; float rot_backup[4];
/* remember if were ortho or not, only used for restoring the view if it was a ortho view */ /* remember if we're ortho or not, only used for restoring the view if it was a ortho view */
char persp_backup; char persp_backup;
/* are we flying an ortho camera in perspective view, /* are we flying an ortho camera in perspective view,

View File

@@ -236,7 +236,7 @@ typedef struct ViewOpsData {
} ViewOpsData; } ViewOpsData;
/** /**
* Size of the sphere being dragged for trackball rotation withing the view bounds. * Size of the sphere being dragged for trackball rotation within the view bounds.
* also affects speed (smaller is faster). * also affects speed (smaller is faster).
*/ */
#define TRACKBALLSIZE (1.1f) #define TRACKBALLSIZE (1.1f)

View File

@@ -593,7 +593,7 @@ static void flyEvent(FlyInfo *fly, const wmEvent *event)
} }
else { else {
/* flip speed rather than stopping, game like motion, /* flip speed rather than stopping, game like motion,
* else increase like mousewheel if were already moving in that direction */ * else increase like mousewheel if we're already moving in that direction */
if (fly->speed < 0.0f) { if (fly->speed < 0.0f) {
fly->speed = -fly->speed; fly->speed = -fly->speed;
} }

View File

@@ -31,7 +31,7 @@
namespace Freestyle { namespace Freestyle {
/*! Class to define the intersection berween two segments*/ /*! Class to define the intersection between two segments*/
template<class Edge> class Intersection { template<class Edge> class Intersection {
public: public:
template<class EdgeClass> Intersection(EdgeClass *eA, real ta, EdgeClass *eB, real tb) template<class EdgeClass> Intersection(EdgeClass *eA, real ta, EdgeClass *eB, real tb)

View File

@@ -230,7 +230,7 @@ const int BCAnimationCurve::closest_index_above(const float sample_frame, const
return -1; return -1;
} }
const int cframe = fcurve->bezt[start_at].vec[1][0]; // inacurate! const int cframe = fcurve->bezt[start_at].vec[1][0]; // inaccurate!
if (fabs(cframe - sample_frame) < 0.00001) { if (fabs(cframe - sample_frame) < 0.00001) {
return start_at; return start_at;
@@ -252,7 +252,7 @@ const int BCAnimationCurve::closest_index_below(const float sample_frame) const
for (int fcu_index = 0; fcu_index < fcurve->totvert; fcu_index++) { for (int fcu_index = 0; fcu_index < fcurve->totvert; fcu_index++) {
upper_index = fcu_index; upper_index = fcu_index;
const int cframe = fcurve->bezt[fcu_index].vec[1][0]; // inacurate! const int cframe = fcurve->bezt[fcu_index].vec[1][0]; // inaccurate!
if (cframe <= sample_frame) { if (cframe <= sample_frame) {
lower_frame = cframe; lower_frame = cframe;
lower_index = fcu_index; lower_index = fcu_index;

View File

@@ -436,7 +436,7 @@ typedef struct SpaceGraph {
/* SpaceGraph.flag (Graph Editor Settings) */ /* SpaceGraph.flag (Graph Editor Settings) */
typedef enum eGraphEdit_Flag { typedef enum eGraphEdit_Flag {
/* OLD DEPRECEATED SETTING */ /* OLD DEPRECATED SETTING */
/* SIPO_LOCK_VIEW = (1 << 0), */ /* SIPO_LOCK_VIEW = (1 << 0), */
/* don't merge keyframes on the same frame after a transform */ /* don't merge keyframes on the same frame after a transform */

View File

@@ -570,7 +570,7 @@ static void cloth_calc_force(
float f; float f;
float vol = cloth_calc_volume(clmd); float vol = cloth_calc_volume(clmd);
/* Calculate an artifical maximum value for cloth pressure. */ /* Calculate an artificial maximum value for cloth pressure. */
f = fabs(clmd->sim_parms->uniform_pressure_force) + 200.0f; f = fabs(clmd->sim_parms->uniform_pressure_force) + 200.0f;
/* Clamp the cloth pressure to the calculated maximum value. */ /* Clamp the cloth pressure to the calculated maximum value. */