Cleanup: spelling, expand on comments

This commit is contained in:
2021-03-22 14:44:05 +11:00
parent f051146ae6
commit cb521bd37b
3 changed files with 7 additions and 5 deletions

View File

@@ -1115,7 +1115,7 @@ bool BKE_lib_override_library_resync(Main *bmain,
void BKE_lib_override_library_main_resync(Main *bmain, Scene *scene, ViewLayer *view_layer)
{
/* We use a specific collection to gather/store all 'orphaned' override collections and objects
* generated by resyncprocess. This avoids putting them in scene's master collection. */
* generated by re-sync-process. This avoids putting them in scene's master collection. */
#define OVERRIDE_RESYNC_RESIDUAL_STORAGE_NAME "OVERRIDE_RESYNC_LEFTOVERS"
Collection *override_resync_residual_storage = BLI_findstring(
&bmain->collections, OVERRIDE_RESYNC_RESIDUAL_STORAGE_NAME, offsetof(ID, name) + 2);

View File

@@ -21,7 +21,7 @@
*
* A virtual array is a data structure that behaves similar to an array, but its elements are
* accessed through virtual methods. This improves the decoupling of a function from its callers,
* because it does not have to know exactly how the data is layed out in memory, or if it is stored
* because it does not have to know exactly how the data is laid out in memory, or if it is stored
* in memory at all. It could just as well be computed on the fly.
*
* Taking a virtual array as parameter instead of a more specific non-virtual type has some

View File

@@ -154,7 +154,9 @@ typedef struct LineartEdge {
unsigned char flags;
/**
* Still need this entry because culled lines will not add to object reln node,
* Still need this entry because culled lines will not add to object
* #LineartElementLinkNode node (known as `reln` internally).
*
* TODO: If really need more savings, we can allocate this in a "extended" way too, but we need
* another bit in flags to be able to show the difference.
*/
@@ -168,7 +170,7 @@ typedef struct LineartLineChain {
/** Calculated before draw command. */
float length;
/** Used when re-connecting and gp stroke generation. */
/** Used when re-connecting and grease-pencil stroke generation. */
char picked;
char level;
@@ -238,7 +240,7 @@ typedef struct LineartRenderBuffer {
unsigned int contour_count;
unsigned int contour_processed;
LineartEdge *contour_managed;
/* Now changed to linknodes. */
/** A single linked list (cast to #LinkNode). */
LineartEdge *contours;
unsigned int intersection_count;