Cleanup: style

This commit is contained in:
Campbell Barton 2017-11-01 11:56:56 +11:00
parent 4e33d07565
commit 2ae6a93f05
Notes: blender-bot 2023-02-14 06:27:41 +01:00
Referenced by issue #53240, 3D viewport Graphical Glitches
Referenced by issue #53222, Using LibLoad with a file containing a "near" sensor will cause crashes.
Referenced by issue #53145, Bevel Problem
4 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ AbcMBallWriter::AbcMBallWriter(
m_is_animated = isAnimated();
m_mesh_ob = BKE_object_copy(bmain, ob);
m_mesh_ob->curve_cache = (CurveCache*)MEM_callocN(
m_mesh_ob->curve_cache = (CurveCache *)MEM_callocN(
sizeof(CurveCache),
"CurveCache for AbcMBallWriter");

View File

@ -896,7 +896,7 @@ bool BKE_fcurve_is_cyclic(FCurve *fcu)
if (fcm->flag & (FMODIFIER_FLAG_RANGERESTRICT | FMODIFIER_FLAG_USEINFLUENCE))
return false;
FMod_Cycles *data = (FMod_Cycles*)fcm->data;
FMod_Cycles *data = (FMod_Cycles *)fcm->data;
return data && data->after_cycles == 0 && data->before_cycles == 0 &&
ELEM(data->before_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET) &&
@ -939,14 +939,14 @@ void calchandles_fcurve(FCurve *fcu)
return;
/* if the first modifier is Cycles, smooth the curve through the cycle */
BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert-1];
BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert - 1];
BezTriple tmp;
bool cycle = BKE_fcurve_is_cyclic(fcu) && BEZT_IS_AUTOH(first) && BEZT_IS_AUTOH(last);
/* get initial pointers */
bezt = fcu->bezt;
prev = cycle_offset_triple(cycle, &tmp, &fcu->bezt[fcu->totvert-2], last, first);
prev = cycle_offset_triple(cycle, &tmp, &fcu->bezt[fcu->totvert - 2], last, first);
next = (bezt + 1);
/* loop over all beztriples, adjusting handles */

View File

@ -168,8 +168,8 @@ int BM_mesh_edgeloops_find(
/* add both directions */
if (bm_loop_build(el_store, e->v1, e->v2, 1) &&
bm_loop_build(el_store, e->v2, e->v1, -1) &&
el_store->len > 1)
bm_loop_build(el_store, e->v2, e->v1, -1) &&
el_store->len > 1)
{
BLI_addtail(r_eloops, el_store);
count++;

View File

@ -875,7 +875,7 @@ void uiItemFullO(
ot, opname, {
if (r_opptr) {
*r_opptr = PointerRNA_NULL;
};
}
return;
});