Cleanup: spelling in comments
This commit is contained in:
parent
37821143dd
commit
81223ae164
|
@ -2823,7 +2823,7 @@ void BKE_gpencil_frame_selected_hash(bGPdata *gpd, struct GHash *r_list)
|
|||
|
||||
bool BKE_gpencil_can_avoid_full_copy_on_write(const Depsgraph *depsgraph, bGPdata *gpd)
|
||||
{
|
||||
/* For now, we only use the update cache in the active depsgraph. Othwerwise we might access the
|
||||
/* For now, we only use the update cache in the active depsgraph. Otherwise we might access the
|
||||
* cache while another depsgraph frees it. */
|
||||
if (!DEG_is_active(depsgraph)) {
|
||||
return false;
|
||||
|
|
|
@ -99,7 +99,7 @@ static void update_cache_node_create_ex(GPencilUpdateCache *root_cache,
|
|||
bool full_copy)
|
||||
{
|
||||
if (root_cache->flag == GP_UPDATE_NODE_FULL_COPY) {
|
||||
/* Entire data-block has to be recaculated, e.g. nothing else needs to be added to the cache.
|
||||
/* Entire data-block has to be recalculated, e.g. nothing else needs to be added to the cache.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
@ -110,14 +110,14 @@ static void update_cache_node_create_ex(GPencilUpdateCache *root_cache,
|
|||
root_cache->data = (bGPdata *)data;
|
||||
root_cache->flag = node_flag;
|
||||
if (full_copy) {
|
||||
/* Entire data-block has to be recaculated, remove all caches of "lower" elements. */
|
||||
/* Entire data-block has to be recalculated, remove all caches of "lower" elements. */
|
||||
BLI_dlrbTree_free(root_cache->children, cache_node_free);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const bool is_layer_update_node = (gpf_index == -1);
|
||||
/* If the data pointer in GPencilUpdateCache is NULL, this element is not actually cached
|
||||
/* If the data pointer in #GPencilUpdateCache is NULL, this element is not actually cached
|
||||
* and does not need to be updated, but we do need the index to find elements that are in
|
||||
* levels below. E.g. if a stroke needs to be updated, the frame it is in would not hold a
|
||||
* pointer to it's data. */
|
||||
|
@ -174,7 +174,7 @@ static void update_cache_node_create(
|
|||
}
|
||||
|
||||
if (root_cache->flag == GP_UPDATE_NODE_FULL_COPY) {
|
||||
/* Entire data-block has to be recaculated, e.g. nothing else needs to be added to the cache.
|
||||
/* Entire data-block has to be recalculated, e.g. nothing else needs to be added to the cache.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
/** \file
|
||||
* \ingroup bli
|
||||
* Windows-posix compatibility layer, windows-specific functions.
|
||||
* WIN32-POSIX compatibility layer, MS-Windows-specific functions.
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
/** \file
|
||||
* \ingroup blenloader
|
||||
* External writefile function prototypes.
|
||||
* External write-file function prototypes.
|
||||
*/
|
||||
|
||||
#include "BLI_filereader.h"
|
||||
|
|
|
@ -1811,7 +1811,7 @@ static void gpencil_sculpt_brush_apply(bContext *C, wmOperator *op, PointerRNA *
|
|||
gso->mval[1] = mouse[1] = (int)(mousef[1]);
|
||||
|
||||
/* If the mouse/pen has not moved, no reason to continue. This also avoid a small
|
||||
* drift due precision acumulation errors. */
|
||||
* drift due precision accumulation errors. */
|
||||
if ((gso->mval[0] == gso->mval_prev[0]) && (gso->mval[1] == gso->mval_prev[1])) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue