forked from bartvdbraak/blender
fix spelling mistakes in comments (and in some python error messages), nothing to effect translations.
This commit is contained in:
parent
67c15da97d
commit
61389bba41
@ -774,7 +774,7 @@ elseif(WIN32)
|
||||
set(PLATFORM_LINKFLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libc.lib")
|
||||
|
||||
else()
|
||||
# keep GCC spesific stuff here
|
||||
# keep GCC specific stuff here
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(PLATFORM_LINKLIBS "-lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid -lwsock32")
|
||||
set(PLATFORM_CFLAGS "-pipe -funsigned-char -fno-strict-aliasing")
|
||||
|
@ -110,7 +110,7 @@ private:
|
||||
const GHOST_TEmbedderWindowID parentWindow
|
||||
);
|
||||
|
||||
/* SDL spesific */
|
||||
/* SDL specific */
|
||||
GHOST_WindowSDL * findGhostWindow(SDL_Window *sdl_win);
|
||||
|
||||
bool
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
|
||||
~GHOST_WindowSDL();
|
||||
|
||||
/* SDL spesific */
|
||||
/* SDL specific */
|
||||
SDL_Window *
|
||||
getSDLWindow()
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ void BKE_animsys_evaluate_animdata(struct Scene *scene, struct ID *id, struct An
|
||||
void BKE_animsys_evaluate_all_animation(struct Main *main, struct Scene *scene, float ctime);
|
||||
|
||||
|
||||
/* ------------ Specialised API --------------- */
|
||||
/* ------------ Specialized API --------------- */
|
||||
/* There are a few special tools which require these following functions. They are NOT to be used
|
||||
* for standard animation evaluation UNDER ANY CIRCUMSTANCES!
|
||||
*
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
/** \file BKE_utildefines.h
|
||||
* \ingroup bke
|
||||
* \brief blender format spesific macros
|
||||
* \brief blender format specific macros
|
||||
* \note generic defines should go in BLI_utildefines.h
|
||||
*/
|
||||
|
||||
|
@ -974,7 +974,7 @@ static void cloth_from_mesh ( ClothModifierData *clmd, DerivedMesh *dm )
|
||||
* SPRING NETWORK BUILDING IMPLEMENTATION BEGIN
|
||||
***************************************************************************************/
|
||||
|
||||
// be carefull: implicit solver has to be resettet when using this one!
|
||||
// be careful: implicit solver has to be resettet when using this one!
|
||||
// --> only for implicit handling of this spring!
|
||||
int cloth_add_spring ( ClothModifierData *clmd, unsigned int indexA, unsigned int indexB, float restlength, int spring_type)
|
||||
{
|
||||
|
@ -705,7 +705,7 @@ void bezt_add_to_cfra_elem (ListBase *lb, BezTriple *bezt)
|
||||
|
||||
/* ***************************** Samples Utilities ******************************* */
|
||||
/* Some utilities for working with FPoints (i.e. 'sampled' animation curve data, such as
|
||||
* data imported from BVH/Mocap files), which are specialised for use with high density datasets,
|
||||
* data imported from BVH/Mocap files), which are specialized for use with high density datasets,
|
||||
* which BezTriples/Keyframe data are ill equipped to do.
|
||||
*/
|
||||
|
||||
|
@ -827,7 +827,7 @@ static void do_cross_effect_float(float facf0, float facf1, int x, int y,
|
||||
}
|
||||
}
|
||||
|
||||
/* carefull: also used by speed effect! */
|
||||
/* careful: also used by speed effect! */
|
||||
|
||||
static struct ImBuf* do_cross_effect(
|
||||
SeqRenderData context, Sequence *UNUSED(seq), float UNUSED(cfra),
|
||||
|
@ -2818,7 +2818,7 @@ static void softbody_calc_forces(Scene *scene, Object *ob, float forcetime, floa
|
||||
if (ob->softflag & OB_SB_FACECOLL) scan_for_ext_face_forces(ob,timenow);
|
||||
|
||||
/* finish matrix and solve */
|
||||
#if (0) // remove onl linking for now .. still i am not sure .. the jacobian can be usefull .. so keep that BM
|
||||
#if (0) // remove onl linking for now .. still i am not sure .. the jacobian can be useful .. so keep that BM
|
||||
if(nl_flags & NLF_SOLVE){
|
||||
//double sct,sst=PIL_check_seconds_timer();
|
||||
for(a=sb->totpoint, bp= sb->bpoint; a>0; a--, bp++) {
|
||||
@ -3540,7 +3540,7 @@ static void lattice_to_softbody(Scene *scene, Object *ob)
|
||||
}
|
||||
}
|
||||
|
||||
/* create some helper edges to enable SB lattice to be usefull at all */
|
||||
/* create some helper edges to enable SB lattice to be useful at all */
|
||||
if (ob->softflag & OB_SB_EDGES){
|
||||
makelatticesprings(lt,ob->soft->bspring,ob->softflag & OB_SB_QUADS,ob);
|
||||
build_bps_springlist(ob); /* link bps to springs */
|
||||
|
@ -1681,7 +1681,7 @@ void BLI_where_am_i(char *fullname, const size_t maxlen, const char *name)
|
||||
|
||||
|
||||
#ifdef WITH_BINRELOC
|
||||
/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */
|
||||
/* linux uses binreloc since argv[0] is not reliable, call br_init( NULL ) first */
|
||||
path = br_find_exe( NULL );
|
||||
if (path) {
|
||||
BLI_strncpy(fullname, path, maxlen);
|
||||
|
@ -13303,7 +13303,7 @@ static void give_base_to_objects(Main *mainvar, Scene *sce, Library *lib, const
|
||||
if( ob->id.flag & LIB_INDIRECT ) {
|
||||
|
||||
/* IF below is quite confusing!
|
||||
if we are appending, but this object wasnt just added allong with a group,
|
||||
if we are appending, but this object wasnt just added along with a group,
|
||||
then this is already used indirectly in the scene somewhere else and we didnt just append it.
|
||||
|
||||
(ob->id.flag & LIB_PRE_EXISTING)==0 means that this is a newly appended object - Campbell */
|
||||
|
@ -2447,7 +2447,7 @@ void ED_keymap_animchannels(wmKeyConfig *keyconf)
|
||||
WM_keymap_add_item(keymap, "ANIM_OT_channels_setting_enable", WKEY, KM_PRESS, KM_CTRL|KM_SHIFT, 0);
|
||||
WM_keymap_add_item(keymap, "ANIM_OT_channels_setting_disable", WKEY, KM_PRESS, KM_ALT, 0);
|
||||
|
||||
/* settings - specialised hotkeys */
|
||||
/* settings - specialized hotkeys */
|
||||
WM_keymap_add_item(keymap, "ANIM_OT_channels_editable_toggle", TABKEY, KM_PRESS, 0, 0);
|
||||
|
||||
/* expand/collapse */
|
||||
|
@ -123,7 +123,7 @@ typedef struct bAnimListElem {
|
||||
|
||||
|
||||
/* Some types for easier type-testing
|
||||
* NOTE: need to keep the order of these synchronised with the channels define code
|
||||
* NOTE: need to keep the order of these synchronized with the channels define code
|
||||
* which is used for drawing and handling channel lists for
|
||||
*/
|
||||
typedef enum eAnim_ChannelType {
|
||||
|
@ -337,7 +337,7 @@ void EM_editselection_normal(float *normal, EditSelection *ese)
|
||||
}
|
||||
|
||||
/* Calculate a plane that is rightangles to the edge/vert/faces normal
|
||||
also make the plane run allong an axis that is related to the geometry,
|
||||
also make the plane run along an axis that is related to the geometry,
|
||||
because this is used for the manipulators Y axis.*/
|
||||
void EM_editselection_plane(float *plane, EditSelection *ese)
|
||||
{
|
||||
@ -345,7 +345,7 @@ void EM_editselection_plane(float *plane, EditSelection *ese)
|
||||
EditVert *eve= ese->data;
|
||||
float vec[3]={0,0,0};
|
||||
|
||||
if (ese->prev) { /*use previously selected data to make a usefull vertex plane */
|
||||
if (ese->prev) { /*use previously selected data to make a useful vertex plane */
|
||||
EM_editselection_center(vec, ese->prev);
|
||||
sub_v3_v3v3(plane, vec, eve->co);
|
||||
} else {
|
||||
@ -361,7 +361,7 @@ void EM_editselection_plane(float *plane, EditSelection *ese)
|
||||
} else if (ese->type==EDITEDGE) {
|
||||
EditEdge *eed= ese->data;
|
||||
|
||||
/*the plane is simple, it runs allong the edge
|
||||
/*the plane is simple, it runs along the edge
|
||||
however selecting different edges can swap the direction of the y axis.
|
||||
this makes it less likely for the y axis of the manipulator
|
||||
(running along the edge).. to flip less often.
|
||||
|
@ -957,7 +957,7 @@ long mesh_mirrtopo_table(Object *ob, char mode)
|
||||
}
|
||||
} else {
|
||||
for(a=0, medge=me->medge; a<me->totedge; a++, medge++) {
|
||||
/* This can make realy big numbers, wrapping around here is fine */
|
||||
/* This can make really big numbers, wrapping around here is fine */
|
||||
MirrTopoHash[medge->v1] += MirrTopoHash_Prev[medge->v2];
|
||||
MirrTopoHash[medge->v2] += MirrTopoHash_Prev[medge->v1];
|
||||
}
|
||||
|
@ -2970,7 +2970,7 @@ static void brush_puff(PEData *data, int point_index)
|
||||
VECSUB(dco, lastco, co);
|
||||
mul_mat3_m4_v3(imat, dco); /* into particle space */
|
||||
|
||||
/* move the point allong a vector perpendicular to the
|
||||
/* move the point along a vector perpendicular to the
|
||||
* hairs direction, reduces odd kinks, */
|
||||
cross_v3_v3v3(c1, ofs, dco);
|
||||
cross_v3_v3v3(c2, c1, dco);
|
||||
|
@ -3387,7 +3387,7 @@ static void project_paint_end(ProjPaintState *ps)
|
||||
}
|
||||
|
||||
/* This is a BIT ODD, but overwrite the undo tiles image info with this pixels original color
|
||||
* because allocating the tiles allong the way slows down painting */
|
||||
* because allocating the tiles along the way slows down painting */
|
||||
|
||||
if (is_float) {
|
||||
float *rgba_fp = (float *)tilerect + (((projPixel->x_px - x_round) + (projPixel->y_px - y_round) * IMAPAINT_TILE_SIZE)) * 4;
|
||||
|
@ -947,7 +947,7 @@ void OUTLINER_OT_show_hierarchy(wmOperatorType *ot)
|
||||
/* ANIMATO OPERATIONS */
|
||||
/* KeyingSet and Driver Creation - Helper functions */
|
||||
|
||||
/* specialised poll callback for these operators to work in Datablocks view only */
|
||||
/* specialized poll callback for these operators to work in Datablocks view only */
|
||||
static int ed_operator_outliner_datablocks_active(bContext *C)
|
||||
{
|
||||
ScrArea *sa= CTX_wm_area(C);
|
||||
|
@ -530,7 +530,7 @@ void SEQUENCER_OT_select(wmOperatorType *ot)
|
||||
|
||||
|
||||
|
||||
/* run recursivly to select linked */
|
||||
/* run recursively to select linked */
|
||||
static int select_more_less_seq__internal(Scene *scene, int sel, int linked)
|
||||
{
|
||||
Editing *ed= seq_give_editing(scene, FALSE);
|
||||
|
@ -450,7 +450,7 @@ static void viewops_data_create(bContext *C, wmOperator *op, wmEvent *event)
|
||||
sub_v3_v3v3(my_pivot, rv3d->ofs, upvec);
|
||||
negate_v3(my_pivot); /* ofs is flipped */
|
||||
|
||||
/* find a new ofs value that is allong the view axis (rather than the mouse location) */
|
||||
/* find a new ofs value that is along the view axis (rather than the mouse location) */
|
||||
closest_to_line_v3(dvec, vod->dyn_ofs, my_pivot, my_origin);
|
||||
vod->dist0 = rv3d->dist = len_v3v3(my_pivot, dvec);
|
||||
|
||||
|
@ -179,7 +179,7 @@ typedef struct FlyInfo {
|
||||
|
||||
/* fly state state */
|
||||
float speed; /* the speed the view is moving per redraw */
|
||||
short axis; /* Axis index to move allong by default Z to move allong the view */
|
||||
short axis; /* Axis index to move along by default Z to move along the view */
|
||||
short pan_view; /* when true, pan the view instead of rotating */
|
||||
|
||||
/* relative view axis locking - xlock, zlock
|
||||
@ -725,7 +725,7 @@ static int flyApply(bContext *C, FlyInfo *fly)
|
||||
RegionView3D *rv3d= fly->rv3d;
|
||||
ARegion *ar = fly->ar;
|
||||
|
||||
float mat[3][3], /* 3x3 copy of the view matrix so we can move allong the view axis */
|
||||
float mat[3][3], /* 3x3 copy of the view matrix so we can move along the view axis */
|
||||
dvec[3]={0,0,0}, /* this is the direction thast added to the view offset per redraw */
|
||||
|
||||
/* Camera Uprighting variables */
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "IMB_anim.h"
|
||||
|
||||
/*
|
||||
seperate animation index files to solve the following problems:
|
||||
separate animation index files to solve the following problems:
|
||||
|
||||
a) different timecodes within one file (like DTS/PTS, Timecode-Track,
|
||||
"implicit" timecodes within DV-files and HDV-files etc.)
|
||||
|
@ -157,7 +157,7 @@ static void rna_Image_unpack(Image *image, ReportList *reports, int method)
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* reports its own error on failier */
|
||||
/* reports its own error on failure */
|
||||
unpackImage (reports, image, method);
|
||||
}
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
|
||||
if (!totedge) {
|
||||
for (i=0; i < totvert; i++, mv_orig++, mv_new++) {
|
||||
copy_v3_v3(mv_new->co, mv_orig->co);
|
||||
normalize_v3_v3(vc->no, mv_new->co); /* no edges- this is realy a dummy normal */
|
||||
normalize_v3_v3(vc->no, mv_new->co); /* no edges- this is really a dummy normal */
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -326,7 +326,7 @@ static void deformVerts(ModifierData *md, Object *ob,
|
||||
DerivedMesh *dm = derivedData;
|
||||
CustomDataMask dataMask = requiredDataMask(ob, md);
|
||||
|
||||
/* we implement requiredDataMask but thats not really usefull since
|
||||
/* we implement requiredDataMask but thats not really useful since
|
||||
mesh_calc_modifiers pass a NULL derivedData */
|
||||
if(dataMask)
|
||||
dm= get_dm(ob, NULL, dm, NULL, 0);
|
||||
@ -346,7 +346,7 @@ static void deformVertsEM(ModifierData *md, Object *ob,
|
||||
DerivedMesh *dm = derivedData;
|
||||
CustomDataMask dataMask = requiredDataMask(ob, md);
|
||||
|
||||
/* we implement requiredDataMask but thats not really usefull since
|
||||
/* we implement requiredDataMask but thats not really useful since
|
||||
mesh_calc_modifiers pass a NULL derivedData */
|
||||
if(dataMask)
|
||||
dm= get_dm(ob, editData, dm, NULL, 0);
|
||||
|
@ -359,7 +359,7 @@ static int bpy_struct_id_used(StructRNA *srna, char *identifier)
|
||||
#endif
|
||||
|
||||
|
||||
/* Function that sets RNA, NOTE - self is NULL when called from python, but being abused from C so we can pass the srna allong
|
||||
/* Function that sets RNA, NOTE - self is NULL when called from python, but being abused from C so we can pass the srna along
|
||||
* This isnt incorrect since its a python object - but be careful */
|
||||
PyDoc_STRVAR(BPy_BoolProperty_doc,
|
||||
".. function:: BoolProperty(name=\"\", description=\"\", default=False, options={'ANIMATABLE'}, subtype='NONE', update=None)\n"
|
||||
|
@ -2218,7 +2218,7 @@ static PyObject *pyrna_prop_collection_subscript(BPy_PropertyRNA *self, PyObject
|
||||
}
|
||||
|
||||
/* generic check to see if a PyObject is compatible with a collection
|
||||
* -1 on failier, 0 on success, sets the error */
|
||||
* -1 on failure, 0 on success, sets the error */
|
||||
static int pyrna_prop_collection_type_check(BPy_PropertyRNA *self, PyObject *value)
|
||||
{
|
||||
StructRNA *prop_srna;
|
||||
@ -3800,7 +3800,7 @@ PyDoc_STRVAR(pyrna_struct_get_doc,
|
||||
" Returns the value of the custom property assigned to key or default\n"
|
||||
" when not found (matches pythons dictionary function of the same name).\n"
|
||||
"\n"
|
||||
" :arg key: The key assosiated with the custom property.\n"
|
||||
" :arg key: The key associated with the custom property.\n"
|
||||
" :type key: string\n"
|
||||
" :arg default: Optional argument for the value to return if\n"
|
||||
" *key* is not found.\n"
|
||||
|
@ -149,7 +149,7 @@ typedef struct {
|
||||
PyObject *in_weakreflist;
|
||||
#endif
|
||||
|
||||
/* collection iterator spesific parts */
|
||||
/* collection iterator specific parts */
|
||||
CollectionPropertyIterator iter;
|
||||
} BPy_PropertyCollectionIterRNA;
|
||||
|
||||
|
@ -75,7 +75,7 @@ static PyObject *Euler_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
return newEulerObject(eul, order, Py_NEW, type);
|
||||
}
|
||||
|
||||
/* internal use, assuem read callback is done */
|
||||
/* internal use, assume read callback is done */
|
||||
static const char *euler_order_str(EulerObject *self)
|
||||
{
|
||||
static const char order[][4] = {"XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX"};
|
||||
|
@ -35,7 +35,7 @@
|
||||
#ifndef RE_RAYCOUNTER_H
|
||||
#define RE_RAYCOUNTER_H
|
||||
|
||||
//#define RE_RAYCOUNTER /* enable counters per ray, usefull for measuring raytrace structures performance */
|
||||
//#define RE_RAYCOUNTER /* enable counters per ray, useful for measuring raytrace structures performance */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -167,7 +167,7 @@ static inline void bvh_node_merge_bb(Node *node, float *min, float *max)
|
||||
|
||||
|
||||
/*
|
||||
* recursivly transverse a BVH looking for a rayhit using a local stack
|
||||
* recursively transverse a BVH looking for a rayhit using a local stack
|
||||
*/
|
||||
template<class Node> static inline void bvh_node_push_childs(Node *node, Isect *isec, Node **stack, int &stack_pos);
|
||||
|
||||
|
@ -3586,8 +3586,8 @@ static void gesture_circle_modal_keymap(wmKeyConfig *keyconf)
|
||||
WM_modalkeymap_add_item(keymap, LEFTMOUSE, KM_PRESS, KM_SHIFT, 0, GESTURE_MODAL_DESELECT);
|
||||
WM_modalkeymap_add_item(keymap, LEFTMOUSE, KM_RELEASE, KM_SHIFT, 0, GESTURE_MODAL_NOP);
|
||||
#else
|
||||
WM_modalkeymap_add_item(keymap, MIDDLEMOUSE, KM_PRESS, 0, 0, GESTURE_MODAL_DESELECT); // defailt 2.4x
|
||||
WM_modalkeymap_add_item(keymap, MIDDLEMOUSE, KM_RELEASE, 0, 0, GESTURE_MODAL_NOP); // defailt 2.4x
|
||||
WM_modalkeymap_add_item(keymap, MIDDLEMOUSE, KM_PRESS, 0, 0, GESTURE_MODAL_DESELECT); // default 2.4x
|
||||
WM_modalkeymap_add_item(keymap, MIDDLEMOUSE, KM_RELEASE, 0, 0, GESTURE_MODAL_NOP); // default 2.4x
|
||||
#endif
|
||||
|
||||
WM_modalkeymap_add_item(keymap, LEFTMOUSE, KM_RELEASE, 0, 0, GESTURE_MODAL_NOP);
|
||||
|
@ -663,7 +663,7 @@ KX_PYMETHODDEF_DOC_NOARGS(BL_ArmatureObject, update,
|
||||
"update()\n"
|
||||
"Make sure that the armature will be updated on next graphic frame.\n"
|
||||
"This is automatically done if a KX_ArmatureActuator with mode run is active\n"
|
||||
"or if an action is playing. This function is usefull in other cases.\n")
|
||||
"or if an action is playing. This function is useful in other cases.\n")
|
||||
{
|
||||
SetActiveAction(NULL, 0, KX_GetActiveEngine()->GetFrameTime());
|
||||
Py_RETURN_NONE;
|
||||
|
@ -99,7 +99,7 @@ bool CConstExpr::NeedsRecalculated()
|
||||
|
||||
CExpression* CConstExpr::CheckLink(std::vector<CBrokenLinkInfo*>& brokenlinks)
|
||||
{
|
||||
// parent checks if child is still usefull.
|
||||
// parent checks if child is still useful.
|
||||
// When for example it's value it's deleted flag set
|
||||
// then release Value, and return NULL in case of constexpression
|
||||
// else return this...
|
||||
|
@ -146,7 +146,7 @@ bool KX_NetworkMessageSensor::Evaluate()
|
||||
// Return always true if a message was received otherwise we can loose messages
|
||||
if (m_IsUp)
|
||||
return true;
|
||||
// Is it usefull to return also true when the first frame without a message??
|
||||
// Is it useful to return also true when the first frame without a message??
|
||||
// This will cause a fast on/off cycle that seems useless!
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user