Cleanup: style

This commit is contained in:
Campbell Barton 2018-11-07 12:57:11 +11:00
parent 0a893c0901
commit 188857e0f2
2 changed files with 6 additions and 6 deletions

View File

@ -1409,7 +1409,7 @@ static void curve_nurb_selected_type_get(Object *ob, Nurb *nu, const int type, K
else {
BPoint *bp;
int i;
int tree_index=0;
int tree_index = 0;
for (i = nu->pntsu * nu->pntsv, bp = nu->bp; i--; bp++) {
if (!bp->hide && bp->f1 & SELECT) {

View File

@ -432,8 +432,8 @@ void WM_toolsystem_ref_sync_from_context(
/* pass */
}
else if ((tref->space_type == SPACE_VIEW3D) &&
(tref->mode == CTX_MODE_PARTICLE) &&
(ob->mode & OB_MODE_PARTICLE_EDIT))
(tref->mode == CTX_MODE_PARTICLE) &&
(ob->mode & OB_MODE_PARTICLE_EDIT))
{
const EnumPropertyItem *items = rna_enum_particle_edit_hair_brush_items;
const int i = RNA_enum_from_value(items, ts->particle.brushtype);
@ -444,9 +444,9 @@ void WM_toolsystem_ref_sync_from_context(
}
}
else if ((tref->space_type == SPACE_IMAGE) &&
(tref->mode == SI_MODE_UV) &&
(ob->mode &
OB_MODE_EDIT))
(tref->mode == SI_MODE_UV) &&
(ob->mode &
OB_MODE_EDIT))
{
const EnumPropertyItem *items = rna_enum_uv_sculpt_tool_items;
const int i = RNA_enum_from_value(items, ts->uv_sculpt_tool);