Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/ghost/intern/GHOST_DropTargetX11.h2
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm2
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp2
-rw-r--r--source/blender/blenkernel/BKE_DerivedMesh.h2
-rw-r--r--source/blender/blenkernel/BKE_object.h2
-rw-r--r--source/blender/blenlib/intern/listbase.c2
-rw-r--r--source/blender/blenlib/intern/mesh_boolean.cc2
-rw-r--r--source/blender/blenlib/intern/threads.cc63
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_render.c2
-rw-r--r--source/blender/draw/intern/draw_instance_data.c2
-rw-r--r--source/blender/draw/intern/draw_manager_data.c2
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c8
-rw-r--r--source/blender/editors/screen/screen_edit.c2
-rw-r--r--source/blender/gpu/intern/gpu_material.c2
-rw-r--r--source/blender/makesrna/intern/rna_object.c2
15 files changed, 51 insertions, 46 deletions
diff --git a/intern/ghost/intern/GHOST_DropTargetX11.h b/intern/ghost/intern/GHOST_DropTargetX11.h
index 066f2f6bba2..a96852da7bb 100644
--- a/intern/ghost/intern/GHOST_DropTargetX11.h
+++ b/intern/ghost/intern/GHOST_DropTargetX11.h
@@ -91,7 +91,7 @@ class GHOST_DropTargetX11 {
/**
* Fully decode file URL (i.e. converts "file:///a%20b/test" to "/a b/test")
* \param fileUrl - file path URL to be fully decoded
- * \return decoded file path (resutl should be free-d)
+ * \return decoded file path (result should be free-d)
*/
char *FileUrlDecode(char *fileUrl);
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 467f59defea..8e9be626684 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -1249,7 +1249,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType
[bitmapImage setSize:imgSize];
/* Convert the image in a RGBA 32bit format */
- /* As Core Graphics does not support contextes with non premutliplied alpha,
+ /* As Core Graphics does not support contexts with non premutliplied alpha,
we need to get alpha key values in a separate batch */
/* First get RGB values w/o Alpha to avoid pre-multiplication,
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index 2a07e02706b..1c8267fa482 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -1043,7 +1043,7 @@ void GHOST_SystemX11::processEvent(XEvent *xe)
* is unmodified (or anyone swapping the keys with xmodmap).
*
* - XLookupKeysym seems to always use first defined keymap (see T47228), which generates
- * keycodes unusable by ghost_key_from_keysym for non-latin-compatible keymaps.
+ * keycodes unusable by ghost_key_from_keysym for non-Latin-compatible keymaps.
*
* To address this, we:
*
diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h
index 42ce7e06c26..c824ed03ee6 100644
--- a/source/blender/blenkernel/BKE_DerivedMesh.h
+++ b/source/blender/blenkernel/BKE_DerivedMesh.h
@@ -215,7 +215,7 @@ struct DerivedMesh {
void *(*getPolyDataArray)(DerivedMesh *dm, int type);
/** Retrieves the base CustomData structures for
- * verts/edges/tessfaces/loops/facdes*/
+ * verts/edges/tessfaces/loops/faces. */
CustomData *(*getVertDataLayout)(DerivedMesh *dm);
CustomData *(*getEdgeDataLayout)(DerivedMesh *dm);
CustomData *(*getTessFaceDataLayout)(DerivedMesh *dm);
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h
index 143955e4930..387d3dfc806 100644
--- a/source/blender/blenkernel/BKE_object.h
+++ b/source/blender/blenkernel/BKE_object.h
@@ -200,7 +200,7 @@ void BKE_object_where_is_calc_time(struct Depsgraph *depsgraph,
float ctime);
void BKE_object_where_is_calc_mat4(struct Object *ob, float r_obmat[4][4]);
-/* possibly belong in own moduke? */
+/* Possibly belong in own module? */
struct BoundBox *BKE_boundbox_alloc_unit(void);
void BKE_boundbox_init_from_minmax(struct BoundBox *bb, const float min[3], const float max[3]);
void BKE_boundbox_calc_center_aabb(const struct BoundBox *bb, float r_cent[3]);
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c
index 5e88f8f3e44..acb18d0e53e 100644
--- a/source/blender/blenlib/intern/listbase.c
+++ b/source/blender/blenlib/intern/listbase.c
@@ -224,7 +224,7 @@ void BLI_listbase_swaplinks(ListBase *listbase, void *vlinka, void *vlinkb)
/**
* Swaps \a vlinka and \a vlinkb from their respective lists.
- * Assumes they are both already in their lista!
+ * Assumes they are both already in their \a listbasea!
*/
void BLI_listbases_swaplinks(ListBase *listbasea, ListBase *listbaseb, void *vlinka, void *vlinkb)
{
diff --git a/source/blender/blenlib/intern/mesh_boolean.cc b/source/blender/blenlib/intern/mesh_boolean.cc
index 563742b9274..3b128aba102 100644
--- a/source/blender/blenlib/intern/mesh_boolean.cc
+++ b/source/blender/blenlib/intern/mesh_boolean.cc
@@ -2425,7 +2425,7 @@ static IMesh gwn_boolean(const IMesh &tm,
int other_shape = 1 - shape;
/* The point_is_inside_shape function has to approximate if the other
* shape is not PWN. For most operations, even a hint of being inside
- * givs good results, but when shape is the cutter in a Difference
+ * gives good results, but when shape is the cutter in a Difference
* operation, we want to be pretty sure that the point is inside other_shape.
* E.g., T75827.
*/
diff --git a/source/blender/blenlib/intern/threads.cc b/source/blender/blenlib/intern/threads.cc
index 002b78bec39..c206aa8d91f 100644
--- a/source/blender/blenlib/intern/threads.cc
+++ b/source/blender/blenlib/intern/threads.cc
@@ -65,49 +65,56 @@ extern pthread_key_t gomp_tls_key;
static void *thread_tls_data;
#endif
-/* ********** basic thread control API ************
+/**
+ * Basic Thread Control API
+ * ========================
*
* Many thread cases have an X amount of jobs, and only an Y amount of
- * threads are useful (typically amount of cpus)
+ * threads are useful (typically amount of CPU's)
*
* This code can be used to start a maximum amount of 'thread slots', which
* then can be filled in a loop with an idle timer.
*
* A sample loop can look like this (pseudo c);
*
- * ListBase lb;
- * int maxthreads = 2;
- * int cont = 1;
+ * \code{.c}
*
- * BLI_threadpool_init(&lb, do_something_func, maxthreads);
+ * ListBase lb;
+ * int max_threads = 2;
+ * int cont = 1;
*
- * while (cont) {
- * if (BLI_available_threads(&lb) && !(escape loop event)) {
- * // get new job (data pointer)
- * // tag job 'processed
- * BLI_threadpool_insert(&lb, job);
- * }
- * else PIL_sleep_ms(50);
+ * BLI_threadpool_init(&lb, do_something_func, max_threads);
+ *
+ * while (cont) {
+ * if (BLI_available_threads(&lb) && !(escape loop event)) {
+ * // get new job (data pointer)
+ * // tag job 'processed
+ * BLI_threadpool_insert(&lb, job);
+ * }
+ * else PIL_sleep_ms(50);
*
- * // find if a job is ready, this the do_something_func() should write in job somewhere
- * cont = 0;
- * for (go over all jobs)
- * if (job is ready) {
- * if (job was not removed) {
- * BLI_threadpool_remove(&lb, job); * }
- * }
- * else cont = 1; * }
- * // conditions to exit loop
- * if (if escape loop event) {
- * if (BLI_available_threadslots(&lb) == maxthreads) {
- * break;
- * }
+ * // Find if a job is ready, this the do_something_func() should write in job somewhere.
+ * cont = 0;
+ * for (go over all jobs)
+ * if (job is ready) {
+ * if (job was not removed) {
+ * BLI_threadpool_remove(&lb, job);
* }
+ * }
+ * else cont = 1;
* }
+ * // Conditions to exit loop.
+ * if (if escape loop event) {
+ * if (BLI_available_threadslots(&lb) == max_threads) {
+ * break;
+ * }
+ * }
+ * }
*
- * BLI_threadpool_end(&lb);
+ * BLI_threadpool_end(&lb);
*
- ************************************************ */
+ * \endcode
+ */
static pthread_mutex_t _image_lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t _image_draw_lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t _viewer_lock = PTHREAD_MUTEX_INITIALIZER;
diff --git a/source/blender/draw/engines/gpencil/gpencil_render.c b/source/blender/draw/engines/gpencil/gpencil_render.c
index 1402448a699..5d417d995ac 100644
--- a/source/blender/draw/engines/gpencil/gpencil_render.c
+++ b/source/blender/draw/engines/gpencil/gpencil_render.c
@@ -101,7 +101,7 @@ void GPENCIL_render_init(GPENCIL_Data *vedata,
const bool do_clear_z = !pix_z || do_region;
const bool do_clear_col = !pix_col || do_region;
- /* FIXME(fclem): we have a precision loss in the depth buffer because of this reupload.
+ /* FIXME(fclem): we have a precision loss in the depth buffer because of this re-upload.
* Find where it comes from! */
/* In multi view render the textures can be reused. */
if (txl->render_depth_tx && !do_clear_z) {
diff --git a/source/blender/draw/intern/draw_instance_data.c b/source/blender/draw/intern/draw_instance_data.c
index 32060ca02a1..f341d16838e 100644
--- a/source/blender/draw/intern/draw_instance_data.c
+++ b/source/blender/draw/intern/draw_instance_data.c
@@ -22,7 +22,7 @@
/**
* DRW Instance Data Manager
- * This is a special memory manager that keeps memory blocks ready to send as vbo data in one
+ * This is a special memory manager that keeps memory blocks ready to send as VBO data in one
* continuous allocation. This way we avoid feeding #GPUBatch each instance data one by one and
* unnecessary memcpy. Since we loose which memory block was used each #DRWShadingGroup we need to
* redistribute them in the same order/size to avoid to realloc each frame. This is why
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index d92b2fb00d4..a4fc44e9571 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -1756,7 +1756,7 @@ void DRW_view_update(DRWView *view,
const float (*culling_winmat)[4])
{
/* DO NOT UPDATE THE DEFAULT VIEW.
- * Create subviews instead, or a copy. */
+ * Create sub-views instead, or a copy. */
BLI_assert(view != DST.view_default);
BLI_assert(view->parent == NULL);
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index d5f68e44ad8..560b14bfd9a 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -2735,13 +2735,11 @@ static bool rename_anim_channels(bAnimContext *ac, int channel_index)
/* ok if we can get name property to edit from this channel */
if (acf->name_prop(ale, &ptr, &prop)) {
- /* actually showing the rename textfield is done on redraw,
+ /* Actually showing the rename text-field is done on redraw,
* so here we just store the index of this channel in the
- * dopesheet data, which will get utilized when drawing the
- * channel...
+ * dope-sheet data, which will get utilized when drawing the channel.
*
- * +1 factor is for backwards compat issues
- */
+ * +1 factor is for backwards compatibility issues. */
if (ac->ads) {
ac->ads->renameIndex = channel_index + 1;
success = true;
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index f534296bd0b..f7c08cff23f 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -1484,7 +1484,7 @@ void ED_screen_animation_timer(bContext *C, int redraws, int sync, int enable)
screen->animtimer = WM_event_add_timer(wm, win, TIMER0, (1.0 / FPS));
sad->region = CTX_wm_region(C);
- /* if startframe is larger than current frame, we put currentframe on startframe.
+ /* If start-frame is larger than current frame, we put current-frame on start-frame.
* note: first frame then is not drawn! (ton) */
if (PRVRANGEON) {
if (scene->r.psfra > scene->r.cfra) {
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index 0bb9acf257f..011d14673b4 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -123,7 +123,7 @@ GPUTexture **gpu_material_ramp_texture_row_set(GPUMaterial *mat,
float *pixels,
float *row)
{
- /* In order to put all the colorbands into one 1D array texture,
+ /* In order to put all the color-bands into one 1D array texture,
* we need them to be the same size. */
BLI_assert(size == CM_TABLE + 1);
UNUSED_VARS_NDEBUG(size);
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 39e1f17d33d..e98fff13068 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -403,7 +403,7 @@ static void rna_Object_matrix_local_set(PointerRNA *ptr, const float values[16])
copy_m4_m4(local_mat, (float(*)[4])values);
}
- /* Don't use compat so we get predictable rotation, and do not use parenting either,
+ /* Don't use compatible so we get predictable rotation, and do not use parenting either,
* because it's a local matrix! */
BKE_object_apply_mat4(ob, local_mat, false, false);
}