Cleanup: spelling in comments

Also remove reference to function that never existed for adding `bNode`.
This commit is contained in:
Campbell Barton 2021-06-05 15:03:09 +10:00
parent 14508ef100
commit 022f8b552d
4 changed files with 4 additions and 4 deletions

View File

@ -1729,7 +1729,7 @@ GHOST_TSuccess GHOST_SystemWayland::setCursorShape(GHOST_TStandardCursor shape)
cursor_t *c = &input->cursor;
if (!c->theme) {
/* The cursor surface hasn't entered an output yet. Initialise theme with scale 1. */
/* The cursor surface hasn't entered an output yet. Initialize theme with scale 1. */
c->theme = wl_cursor_theme_load(c->theme_name.c_str(), c->size, d->inputs[0]->system->shm());
}

View File

@ -1643,7 +1643,7 @@ void BKE_collection_parent_relations_rebuild(Collection *collection)
continue;
}
/* Can happen when remaping data partially out-of-Main (during advanced ID management
/* Can happen when remapping data partially out-of-Main (during advanced ID management
* operations like liboverride resync e.g.). */
if ((child->collection->id.tag & (LIB_TAG_NO_MAIN | LIB_TAG_COPIED_ON_WRITE)) != 0) {
continue;

View File

@ -31,7 +31,7 @@
#include "BLI_strict_flags.h"
/**
* Check if memory is zero'd, as with memset(arr, 0, arr_size)
* Check if memory is zeroed, as with `memset(arr, 0, arr_size)`.
*/
bool BLI_memory_is_zero(const void *arr, const size_t arr_size)
{

View File

@ -753,7 +753,7 @@ void ED_node_set_active(Main *bmain, bNodeTree *ntree, bNode *node, bool *r_acti
ED_node_tag_update_nodetree(bmain, ntree, node);
}
/* addnode() doesn't link this yet... */
/* Adding a node doesn't link this yet. */
node->id = (ID *)BKE_image_ensure_viewer(bmain, IMA_TYPE_COMPOSITE, "Viewer Node");
}
else if (node->type == CMP_NODE_COMPOSITE) {