Code cleanup: spelling
This commit is contained in:
@@ -57,7 +57,7 @@ struct ListBase;
|
||||
*/
|
||||
typedef struct EvaluationContext {
|
||||
bool for_render; /* Set to true if evaluation shall be performed for render purposes,
|
||||
keep at false if update shall happen for the viewport. */
|
||||
* keep at false if update shall happen for the viewport. */
|
||||
} EvaluationContext;
|
||||
|
||||
/* DagNode->eval_flags */
|
||||
|
||||
@@ -695,7 +695,7 @@ bool BKE_bpath_relocate_visitor(void *pathbase_v, char *path_dst, const char *pa
|
||||
/* -------------------------------------------------------------------- */
|
||||
/**
|
||||
* Backup/Restore/Free functions,
|
||||
* \note These functions assume the data won't chane order.
|
||||
* \note These functions assume the data won't change order.
|
||||
*/
|
||||
|
||||
struct PathStore {
|
||||
|
||||
@@ -290,7 +290,7 @@ static int ctx_data_get(bContext *C, const char *member, bContextDataResult *res
|
||||
return done;
|
||||
|
||||
/* we check recursion to ensure that we do not get infinite
|
||||
* loops requesting data from ourselfs in a context callback */
|
||||
* loops requesting data from ourselves in a context callback */
|
||||
|
||||
/* Ok, this looks evil...
|
||||
* if (ret) done = -(-ret | -done);
|
||||
|
||||
@@ -2505,7 +2505,7 @@ void BKE_curve_bevelList_make(Object *ob, ListBase *nurbs, bool for_render)
|
||||
/*
|
||||
* - convert all curves to polys, with indication of resol and flags for double-vertices
|
||||
* - possibly; do a smart vertice removal (in case Nurb)
|
||||
* - separate in individual blicks with BoundBox
|
||||
* - separate in individual blocks with BoundBox
|
||||
* - AutoHole detection
|
||||
*/
|
||||
Curve *cu;
|
||||
|
||||
@@ -410,7 +410,7 @@ static void build_leaf(PBVH *bvh, int node_index, BBC *prim_bbc,
|
||||
}
|
||||
|
||||
/* Return zero if all primitives in the node can be drawn with the
|
||||
* same material (including flat/smooth shading), non-zerootherwise */
|
||||
* same material (including flat/smooth shading), non-zero otherwise */
|
||||
static int leaf_needs_material_split(PBVH *bvh, int offset, int count)
|
||||
{
|
||||
int i, prim;
|
||||
|
||||
@@ -1462,7 +1462,7 @@ static void scene_update_objects(EvaluationContext *eval_ctx, Main *bmain, Scene
|
||||
bool need_singlethread_pass;
|
||||
|
||||
/* Early check for whether we need to invoke all the task-based
|
||||
* tihngs (spawn new ppol, traverse dependency graph and so on).
|
||||
* things (spawn new ppol, traverse dependency graph and so on).
|
||||
*
|
||||
* Basically if there's no ID datablocks tagged for update which
|
||||
* corresponds to object->recalc flags (which are checked in
|
||||
|
||||
@@ -155,7 +155,7 @@ static float stabilization_calculate_autoscale_factor(MovieTracking *tracking, i
|
||||
}
|
||||
|
||||
/* For every frame we calculate scale factor needed to eliminate black
|
||||
* aread and choose largest scale factor as final one.
|
||||
* area and choose largest scale factor as final one.
|
||||
*/
|
||||
for (cfra = sfra; cfra <= efra; cfra++) {
|
||||
float median[2];
|
||||
|
||||
@@ -829,7 +829,7 @@ void blo_do_versions_260(FileData *fd, Library *UNUSED(lib), Main *main)
|
||||
for (i = 0; i < 3; i++) {
|
||||
if ( (ob->dsize[i] == 0.0f) || /* simple case, user never touched dsize */
|
||||
(ob->size[i] == 0.0f)) /* cant scale the dsize to give a non zero result,
|
||||
so fallback to 1.0f */
|
||||
* so fallback to 1.0f */
|
||||
{
|
||||
ob->dscale[i] = 1.0f;
|
||||
}
|
||||
|
||||
@@ -411,8 +411,8 @@ void RE_bake_engine_set_engine_parameters(Render *re, Main *bmain, Scene *scene)
|
||||
re->r = scene->r;
|
||||
|
||||
/* prevent crash when freeing the scene
|
||||
but it potentially leaves unfreed memory blocks
|
||||
not sure how to fix this yet -- dfelinto */
|
||||
* but it potentially leaves unfreed memory blocks
|
||||
* not sure how to fix this yet -- dfelinto */
|
||||
BLI_listbase_clear(&re->r.layers);
|
||||
}
|
||||
|
||||
|
||||
@@ -621,7 +621,7 @@ static void occ_build_recursive(OcclusionTree *tree, OccNode *node, int begin, i
|
||||
static void occ_build_sh_normalize(OccNode *node)
|
||||
{
|
||||
/* normalize spherical harmonics to not include area, so
|
||||
* we can clamp the dot product and then mutliply by area */
|
||||
* we can clamp the dot product and then multiply by area */
|
||||
int b;
|
||||
|
||||
if (node->area != 0.0f)
|
||||
|
||||
Reference in New Issue
Block a user