Cleanup: typos
D3081 by @rjg, with others.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
MEMORY MANAGEMENT IN BLENDER (guardedalloc)
|
MEMORY MANAGEMENT IN BLENDER (guardedalloc)
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
NOTE: This file does not cover memutil and smart pointers and rerefence counted
|
NOTE: This file does not cover memutil and smart pointers and reference counted
|
||||||
garbage collection, which are contained in the memutil module.
|
garbage collection, which are contained in the memutil module.
|
||||||
|
|
||||||
Blender takes care of dynamic memory allocation using a set of own functions
|
Blender takes care of dynamic memory allocation using a set of own functions
|
||||||
|
@@ -1104,7 +1104,7 @@ static int psys_thread_context_init_distribute(ParticleThreadContext *ctx, Parti
|
|||||||
/* This is to address tricky issues with vertex-emitting when user tries (and expects) exact 1-1 vert/part
|
/* This is to address tricky issues with vertex-emitting when user tries (and expects) exact 1-1 vert/part
|
||||||
* distribution (see T47983 and its two example files). It allows us to consider pos as
|
* distribution (see T47983 and its two example files). It allows us to consider pos as
|
||||||
* 'midpoint between v and v+1' (or 'p and p+1', depending whether we have more vertices than particles or not),
|
* 'midpoint between v and v+1' (or 'p and p+1', depending whether we have more vertices than particles or not),
|
||||||
* and avoid stumbling over float imprecisions in element_sum.
|
* and avoid stumbling over float impression in element_sum.
|
||||||
* Note: moved face and volume distribution to this as well (instead of starting at zero),
|
* Note: moved face and volume distribution to this as well (instead of starting at zero),
|
||||||
* for the same reasons, see T52682. */
|
* for the same reasons, see T52682. */
|
||||||
pos = (totpart < totmapped) ? 0.5 / (double)totmapped : step * 0.5; /* We choose the smaller step. */
|
pos = (totpart < totmapped) ? 0.5 / (double)totmapped : step * 0.5; /* We choose the smaller step. */
|
||||||
|
@@ -189,7 +189,7 @@ void tracking_configure_tracker(const MovieTrackingTrack *track, float *mask,
|
|||||||
options->image1_mask = NULL;
|
options->image1_mask = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Peform tracking from a reference_marker to destination_ibuf.
|
/* Perform tracking from a reference_marker to destination_ibuf.
|
||||||
* Uses marker as an initial position guess.
|
* Uses marker as an initial position guess.
|
||||||
*
|
*
|
||||||
* Returns truth if tracker returned success, puts result
|
* Returns truth if tracker returned success, puts result
|
||||||
|
@@ -185,7 +185,7 @@ size_t BLI_file_size(const char *path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the st_mode from statting the specified path name, or 0 if it couldn't be statted
|
* Returns the st_mode from stat-ing the specified path name, or 0 if stat fails
|
||||||
* (most likely doesn't exist or no access).
|
* (most likely doesn't exist or no access).
|
||||||
*/
|
*/
|
||||||
int BLI_exists(const char *name)
|
int BLI_exists(const char *name)
|
||||||
|
@@ -114,7 +114,7 @@ static void animedit_get_yscale_factor(bAnimContext *ac)
|
|||||||
|
|
||||||
/* grab scale factor directly from action editor setting
|
/* grab scale factor directly from action editor setting
|
||||||
* NOTE: This theme setting doesn't have an ID, as it cannot be accessed normally
|
* NOTE: This theme setting doesn't have an ID, as it cannot be accessed normally
|
||||||
* since it is a float, and the theem settings methods can only handle chars.
|
* since it is a float, and the theme settings methods can only handle chars.
|
||||||
*/
|
*/
|
||||||
ac->yscale_fac = btheme->tact.keyframe_scale_fac;
|
ac->yscale_fac = btheme->tact.keyframe_scale_fac;
|
||||||
|
|
||||||
|
@@ -171,8 +171,8 @@ int graphop_editable_keyframes_poll(bContext *C)
|
|||||||
|
|
||||||
/* editable curves must fulfill the following criteria:
|
/* editable curves must fulfill the following criteria:
|
||||||
* - it has bezier keyframes
|
* - it has bezier keyframes
|
||||||
* - it must not be protected from editing (this is already checked for with the foredit flag
|
* - it must not be protected from editing (this is already checked for with the edit flag
|
||||||
* - F-Curve modifiers do not interfere with the result too much
|
* - F-Curve modifiers do not interfere with the result too much
|
||||||
* (i.e. the modifier-control drawing check returns false)
|
* (i.e. the modifier-control drawing check returns false)
|
||||||
*/
|
*/
|
||||||
if (fcu->bezt == NULL)
|
if (fcu->bezt == NULL)
|
||||||
|
Reference in New Issue
Block a user