From c0a6bc19794c69843c38451c762e91bc10136e0f Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Mon, 19 Oct 2020 09:15:34 -0700 Subject: Spelling: Loose Versus Lose Corrects incorrect usages of the word 'loose' when 'lose' was required. Differential Revision: https://developer.blender.org/D9243 Reviewed by Campbell Barton --- source/blender/blenkernel/intern/lib_id.c | 4 ++-- source/blender/blenkernel/intern/mesh_evaluate.c | 2 +- source/blender/blenkernel/intern/scene.c | 2 +- source/blender/blenloader/intern/readfile.c | 2 +- source/blender/blenloader/intern/versioning_290.c | 2 +- source/blender/bmesh/operators/bmo_extrude.c | 2 +- source/blender/draw/engines/eevee/shaders/surface_frag.glsl | 2 +- source/blender/draw/intern/draw_instance_data.c | 2 +- source/blender/draw/intern/draw_manager.h | 2 +- source/blender/editors/animation/anim_motion_paths.c | 2 +- source/blender/editors/mesh/editmesh_knife.c | 2 +- source/blender/editors/object/object_add.c | 2 +- source/blender/editors/object/object_data_transform.c | 2 +- source/blender/editors/render/render_update.c | 2 +- source/blender/editors/space_view3d/view3d_view.c | 4 ++-- source/blender/editors/transform/transform_convert_object.c | 2 +- source/blender/imbuf/intern/thumbs.c | 2 +- source/blender/io/collada/MeshImporter.cpp | 2 +- source/blender/makesrna/intern/rna_scene_api.c | 2 +- source/blender/python/intern/bpy_interface.c | 2 +- source/blender/python/intern/bpy_operator.c | 4 ++-- source/blender/sequencer/intern/sequencer.c | 2 +- source/blender/windowmanager/intern/wm_keymap.c | 2 +- 23 files changed, 26 insertions(+), 26 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index cfe81531204..27422440cd5 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -2050,7 +2050,7 @@ void BKE_library_make_local(Main *bmain, /* Proxies only work when the proxified object is linked-in from a library. */ if (ob->proxy->id.lib == NULL) { CLOG_WARN(&LOG, - "proxy object %s will loose its link to %s, because the " + "proxy object %s will lose its link to %s, because the " "proxified object is local.", id->newid->name, ob->proxy->id.name); @@ -2064,7 +2064,7 @@ void BKE_library_make_local(Main *bmain, * was not used locally would be a nasty bug! */ if (is_local || is_lib) { CLOG_WARN(&LOG, - "made-local proxy object %s will loose its link to %s, " + "made-local proxy object %s will lose its link to %s, " "because the linked-in proxy is referenced (is_local=%i, is_lib=%i).", id->newid->name, ob->proxy->id.name, diff --git a/source/blender/blenkernel/intern/mesh_evaluate.c b/source/blender/blenkernel/intern/mesh_evaluate.c index 0aa8f7ca260..6b3a85cc364 100644 --- a/source/blender/blenkernel/intern/mesh_evaluate.c +++ b/source/blender/blenkernel/intern/mesh_evaluate.c @@ -1663,7 +1663,7 @@ void BKE_mesh_normals_loop_split(const MVert *mverts, * Note that currently we only have two values for second loop of sharp edges. * However, if needed, we can store the negated value of loop index instead of INDEX_INVALID * to retrieve the real value later in code). - * Note also that lose edges always have both values set to 0! */ + * Note also that loose edges always have both values set to 0! */ int(*edge_to_loops)[2] = MEM_calloc_arrayN((size_t)numEdges, sizeof(*edge_to_loops), __func__); /* Simple mapping from a loop to its polygon index. */ diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 5e5f325d7d8..d0e731fec1b 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -1595,7 +1595,7 @@ void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph) * * NOTE: Only update for new frame on first iteration. Second iteration is for ensuring user * edits from callback are properly taken into account. Doing a time update on those would - * loose any possible unkeyed changes made by the handler. */ + * lose any possible unkeyed changes made by the handler. */ if (pass == 0) { const float ctime = BKE_scene_frame_get(scene); DEG_evaluate_on_framechange(depsgraph, ctime); diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 24bbb50968a..c49808c3718 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3308,7 +3308,7 @@ static void lib_link_object(BlendLibReader *reader, Object *ob) * the material list size gets out of sync. T22663. */ if (ob->data && ob->id.lib != ((ID *)ob->data)->lib) { const short *totcol_data = BKE_object_material_len_p(ob); - /* Only expand so as not to loose any object materials that might be set. */ + /* Only expand so as not to lose any object materials that might be set. */ if (totcol_data && (*totcol_data > ob->totcol)) { /* printf("'%s' %d -> %d\n", ob->id.name, ob->totcol, *totcol_data); */ BKE_object_material_resize(reader->main, ob, *totcol_data, false); diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 58dcce72823..c6760adfd3f 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -245,7 +245,7 @@ void do_versions_after_linking_290(Main *bmain, ReportList *UNUSED(reports)) * To play safe we move all the inputs beyond 18 to their rightful new place. * In case users are doing unexpected things with not-really supported keyframeable channels. * - * The for loop for the input ids is at the top level otherwise we loose the animation + * The for loop for the input ids is at the top level otherwise we lose the animation * keyframe data. * */ for (int input_id = 21; input_id >= 18; input_id--) { diff --git a/source/blender/bmesh/operators/bmo_extrude.c b/source/blender/bmesh/operators/bmo_extrude.c index 846cd0c7ed0..0a08b340e87 100644 --- a/source/blender/bmesh/operators/bmo_extrude.c +++ b/source/blender/bmesh/operators/bmo_extrude.c @@ -613,7 +613,7 @@ void bmo_extrude_face_region_exec(BMesh *bm, BMOperator *op) e = v->e; BMEdge *e_other = BM_DISK_EDGE_NEXT(e, v); if ((e_other == e) || (BM_DISK_EDGE_NEXT(e_other, v) == e)) { - /* Lose edge or BMVert is edge pair. */ + /* Loose edge or BMVert is edge pair. */ BM_edge_collapse(bm, BMO_elem_flag_test(bm, e, EXT_TAG) ? e : e_other, v, true, true); } else { diff --git a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl index b19e50c9d31..d0297c8cb7f 100644 --- a/source/blender/draw/engines/eevee/shaders/surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/surface_frag.glsl @@ -65,7 +65,7 @@ void main() * Just disable USE_SSS when USE_REFRACTION is enabled. */ # ifdef USE_REFRACTION /* SSRefraction pass is done after the SSS pass. - * In order to not loose the diffuse light totally we + * In order to not lose the diffuse light totally we * need to merge the SSS radiance to the main radiance. */ fac = 1.0; # endif diff --git a/source/blender/draw/intern/draw_instance_data.c b/source/blender/draw/intern/draw_instance_data.c index 0654f949e52..4050a5f8b69 100644 --- a/source/blender/draw/intern/draw_instance_data.c +++ b/source/blender/draw/intern/draw_instance_data.c @@ -24,7 +24,7 @@ * DRW Instance Data Manager * 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 + * unnecessary memcpy. Since we lose 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 * #DRWInstanceDatas are sorted in a list for each different data size. */ diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index e40328c0f2e..8e505d5df71 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -417,7 +417,7 @@ struct DRWView { * In order to keep a cache friendly data structure, * we alloc most of our little data into chunks of multiple item. * Iteration, allocation and memory usage are better. - * We loose a bit of memory by allocating more than what we need + * We lose a bit of memory by allocating more than what we need * but it's counterbalanced by not needing the linked-list pointers * for each item. **/ diff --git a/source/blender/editors/animation/anim_motion_paths.c b/source/blender/editors/animation/anim_motion_paths.c index 2a37302872a..088ac9dbcba 100644 --- a/source/blender/editors/animation/anim_motion_paths.c +++ b/source/blender/editors/animation/anim_motion_paths.c @@ -402,7 +402,7 @@ void animviz_calc_motionpaths(Depsgraph *depsgraph, /* TODO: Create a copy of background depsgraph that only contain these entities, * and only evaluates them. * - * For until that is done we force dependency graph to not be active, so we don't loose unkeyed + * For until that is done we force dependency graph to not be active, so we don't lose unkeyed * changes during updating the motion path. * This still doesn't include unkeyed changes to the path itself, but allows to have updates in * an environment when auto-keying and pose paste is used. */ diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index dde422074a7..0ab1c926189 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -3193,7 +3193,7 @@ void EDBM_mesh_knife(bContext *C, LinkNode *polys, bool use_tag, bool cut_throug keep_search = true; } else { - /* don't loose time on this face again, set it as outside */ + /* don't lose time on this face again, set it as outside */ F_ISECT_SET_OUTSIDE(f); } } diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 0ec7ca52263..eb2f5f8ca51 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -2348,7 +2348,7 @@ static void object_data_convert_ensure_curve_cache(Depsgraph *depsgraph, Scene * */ if (ELEM(ob->type, OB_SURF, OB_CURVE, OB_FONT)) { /* We need 'for render' ON here, to enable computing bevel dipslist if needed. - * Also makes sense anyway, we would not want e.g. to loose hidden parts etc. */ + * Also makes sense anyway, we would not want e.g. to lose hidden parts etc. */ BKE_displist_make_curveTypes(depsgraph, scene, ob, true, false); } else if (ob->type == OB_MBALL) { diff --git a/source/blender/editors/object/object_data_transform.c b/source/blender/editors/object/object_data_transform.c index 8ea35c7a92c..72dde7b734b 100644 --- a/source/blender/editors/object/object_data_transform.c +++ b/source/blender/editors/object/object_data_transform.c @@ -24,7 +24,7 @@ * * This is a small API to store & apply transformations to object data, * where a transformation matrix can be continually applied ontop of the original values - * so we don't loose precision over time. + * so we don't lose precision over time. */ #include diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c index ffb2d3991b7..0968560678b 100644 --- a/source/blender/editors/render/render_update.c +++ b/source/blender/editors/render/render_update.c @@ -135,7 +135,7 @@ void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, int update engine->flag &= ~RE_ENGINE_DO_UPDATE; /* NOTE: Important to pass non-updated depsgraph, This is because this function is called * from inside dependency graph evaluation. Additionally, if we pass fully evaluated one - * we will loose updates stored in the graph. */ + * we will lose updates stored in the graph. */ engine->type->view_update(engine, C, CTX_data_depsgraph_pointer(C)); } else { diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 6faaedc1c4a..0985d65d5f8 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -232,7 +232,7 @@ void ED_view3d_smooth_view_ex( /* grid draw as floor */ if ((RV3D_LOCK_FLAGS(rv3d) & RV3D_LOCK_ROTATION) == 0) { /* use existing if exists, means multiple calls to smooth view - * wont loose the original 'view' setting */ + * wont lose the original 'view' setting */ rv3d->view = RV3D_VIEW_USER; } @@ -1229,7 +1229,7 @@ static uint free_localview_bit(Main *bmain) ushort local_view_bits = 0; - /* sometimes we loose a localview: when an area is closed */ + /* sometimes we lose a localview: when an area is closed */ /* check all areas: which localviews are in use? */ for (screen = bmain->screens.first; screen; screen = screen->id.next) { for (area = screen->areabase.first; area; area = area->next) { diff --git a/source/blender/editors/transform/transform_convert_object.c b/source/blender/editors/transform/transform_convert_object.c index 6664c41b0b6..90ffccfdd7b 100644 --- a/source/blender/editors/transform/transform_convert_object.c +++ b/source/blender/editors/transform/transform_convert_object.c @@ -225,7 +225,7 @@ static void ObjectToTransData(TransInfo *t, TransData *td, Object *ob) copy_m4_m4(ob->obmat, object_eval->obmat); /* Only copy negative scale flag, this is the only flag which is modified by * the BKE_object_where_is_calc(). The rest of the flags we need to keep, - * otherwise we might loose dupli flags (see T61787). */ + * otherwise we might lose dupli flags (see T61787). */ ob->transflag &= ~OB_NEG_SCALE; ob->transflag |= (object_eval->transflag & OB_NEG_SCALE); diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 17b619d451c..038c9950968 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -151,7 +151,7 @@ typedef enum { UNSAFE_SLASHES = 0x20, /* Allows all characters except for '/' and '%' */ } UnsafeCharacterSet; -/* Don't loose comment alignment. */ +/* Don't lose comment alignment. */ /* clang-format off */ static const unsigned char acceptable[96] = { /* A table of the ASCII chars from space (32) to DEL (127) */ diff --git a/source/blender/io/collada/MeshImporter.cpp b/source/blender/io/collada/MeshImporter.cpp index 7d5cd671b73..72a265db287 100644 --- a/source/blender/io/collada/MeshImporter.cpp +++ b/source/blender/io/collada/MeshImporter.cpp @@ -634,7 +634,7 @@ void MeshImporter::read_lines(COLLADAFW::Mesh *mesh, Mesh *me) /* ======================================================================= * Read all faces from TRIANGLES, TRIANGLE_FANS, POLYLIST, POLYGON * Important: This function MUST be called before read_lines() - * Otherwise we will loose all edges from faces (see read_lines() above) + * Otherwise we will lose all edges from faces (see read_lines() above) * * TODO: import uv set names * ======================================================================== */ diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index 10deceb0fec..a57c1196f6a 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -90,7 +90,7 @@ static void rna_Scene_frame_set(Scene *scene, Main *bmain, int frame, float subf * redrawing while the data is being modified for render */ if (!G.is_rendering) { /* cant use NC_SCENE|ND_FRAME because this causes wm_event_do_notifiers to call - * BKE_scene_graph_update_for_newframe which will loose any un-keyed changes T24690. */ + * BKE_scene_graph_update_for_newframe which will lose any un-keyed changes T24690. */ /* WM_main_add_notifier(NC_SCENE|ND_FRAME, scene); */ /* instead just redraw the views */ diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 49a17bbf1bf..c4523363a91 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -670,7 +670,7 @@ static void bpy_module_delay_init(PyObject *bpy_proxy) const int argc = 1; const char *argv[2]; - /* updating the module dict below will loose the reference to __file__ */ + /* updating the module dict below will lose the reference to __file__ */ PyObject *filename_obj = PyModule_GetFilenameObject(bpy_proxy); const char *filename_rel = _PyUnicode_AsString(filename_obj); /* can be relative */ diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index 8b65bb22889..0c8728f70fc 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -133,7 +133,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args) struct bContext_PyState context_py_state; if (context_dict != NULL) { CTX_py_state_push(C, &context_py_state, (void *)context_dict); - Py_INCREF(context_dict); /* so we done loose it */ + Py_INCREF(context_dict); /* so we don't lose it */ } /* main purpose of this function */ @@ -240,7 +240,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) struct bContext_PyState context_py_state; if (context_dict != NULL) { CTX_py_state_push(C, &context_py_state, (void *)context_dict); - Py_INCREF(context_dict); /* so we done loose it */ + Py_INCREF(context_dict); /* so we don't lose it */ } if (WM_operator_poll_context((bContext *)C, ot, context) == false) { diff --git a/source/blender/sequencer/intern/sequencer.c b/source/blender/sequencer/intern/sequencer.c index 6f5774d97fa..c8dfb6b886f 100644 --- a/source/blender/sequencer/intern/sequencer.c +++ b/source/blender/sequencer/intern/sequencer.c @@ -590,7 +590,7 @@ void BKE_sequencer_imbuf_to_sequencer_space(Scene *scene, ImBuf *ibuf, bool make return; } /* We don't want both byte and float buffers around: they'll either run - * out of sync or conversion of byte buffer will loose precision in there. + * out of sync or conversion of byte buffer will lose precision in there. */ if (ibuf->rect != NULL) { imb_freerectImBuf(ibuf); diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c index 3b792744d40..1daab07812d 100644 --- a/source/blender/windowmanager/intern/wm_keymap.c +++ b/source/blender/windowmanager/intern/wm_keymap.c @@ -616,7 +616,7 @@ static void wm_keymap_diff( BLI_addtail(&diff_km->diff_items, kmdi); } - /* sync expanded flag back to original so we don't loose it on repatch */ + /* sync expanded flag back to original so we don't lose it on repatch */ if (to_kmi) { orig_kmi = WM_keymap_item_find_id(orig_km, kmi->id); -- cgit v1.2.3