diff options
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/animation/anim_channels_defines.c | 8 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 6 | ||||
-rw-r--r-- | source/blender/editors/animation/drivers.c | 8 | ||||
-rw-r--r-- | source/blender/editors/armature/poselib.c | 6 | ||||
-rw-r--r-- | source/blender/editors/armature/poseobject.c | 6 | ||||
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 12 | ||||
-rw-r--r-- | source/blender/editors/datafiles/Bfont.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 10 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/resources.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/view2d.c | 14 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 6 |
14 files changed, 47 insertions, 47 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index c4fca2d4ea5..9bbba20c15e 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -850,7 +850,7 @@ static int acf_group_setting_flag(bAnimContext *ac, int setting, short *neg) return AGRP_MUTED; case ACHANNEL_SETTING_PROTECT: /* protected */ - // *neg= 1; - if we change this to edtiability + // *neg = 1; - if we change this to edtiability return AGRP_PROTECTED; case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */ @@ -938,7 +938,7 @@ static int acf_fcurve_setting_flag(bAnimContext *UNUSED(ac), int setting, short return FCURVE_MUTED; case ACHANNEL_SETTING_PROTECT: /* protected */ - // *neg= 1; - if we change this to edtiability + // *neg = 1; - if we change this to edtiability return FCURVE_PROTECTED; case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */ @@ -2483,7 +2483,7 @@ static int acf_gpl_setting_flag(bAnimContext *UNUSED(ac), int setting, short *ne return GP_LAYER_HIDE; case ACHANNEL_SETTING_PROTECT: /* protected */ - // *neg= 1; - if we change this to edtiability + // *neg = 1; - if we change this to edtiability return GP_LAYER_LOCKED; default: /* unsupported */ @@ -3096,7 +3096,7 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, bAnimChann /* get the base icon for the setting */ switch (setting) { case ACHANNEL_SETTING_VISIBLE: /* visibility eyes */ - //icon= ((enabled)? ICON_VISIBLE_IPO_ON : ICON_VISIBLE_IPO_OFF); + //icon = ((enabled) ? ICON_VISIBLE_IPO_ON : ICON_VISIBLE_IPO_OFF); icon = ICON_VISIBLE_IPO_OFF; if (ale->type == ANIMTYPE_FCURVE) diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 159c4681951..dc0886a473e 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -496,7 +496,7 @@ void ANIM_flush_setting_anim_channels(bAnimContext *ac, ListBase *anim_data, bAn break; /* store this level as the 'old' level now */ - // prevLevel= level; // XXX: prevLevel is unused + // prevLevel = level; // XXX: prevLevel is unused } } } @@ -2017,7 +2017,7 @@ static int animchannels_rename_invoke(bContext *C, wmOperator *UNUSED(op), wmEve v2d = &ar->v2d; /* figure out which channel user clicked in - * Note: although channels technically start at y= ACHANNEL_FIRST, we need to adjust by half a channel's height + * Note: although channels technically start at (y = ACHANNEL_FIRST), we need to adjust by half a channel's height * so that the tops of channels get caught ok. Since ACHANNEL_FIRST is really ACHANNEL_HEIGHT, we simply use * ACHANNEL_HEIGHT_HALF. */ @@ -2330,7 +2330,7 @@ static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent * selectmode = SELECT_REPLACE; /* figure out which channel user clicked in - * Note: although channels technically start at y= ACHANNEL_FIRST, we need to adjust by half a channel's height + * Note: although channels technically start at (y = ACHANNEL_FIRST), we need to adjust by half a channel's height * so that the tops of channels get caught ok. Since ACHANNEL_FIRST is really ACHANNEL_HEIGHT, we simply use * ACHANNEL_HEIGHT_HALF. */ diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 416df6bccba..4a5966948ae 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -521,7 +521,7 @@ void ANIM_OT_driver_button_add(wmOperatorType *ot) /* callbacks */ ot->exec = add_driver_button_exec; - //op->poll= ??? // TODO: need to have some animatable property to do this + //op->poll = ??? // TODO: need to have some animatable property to do this /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -573,7 +573,7 @@ void ANIM_OT_driver_button_remove(wmOperatorType *ot) /* callbacks */ ot->exec = remove_driver_button_exec; - //op->poll= ??? // TODO: need to have some driver to be able to do this... + //op->poll = ??? // TODO: need to have some driver to be able to do this... /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -620,7 +620,7 @@ void ANIM_OT_copy_driver_button(wmOperatorType *ot) /* callbacks */ ot->exec = copy_driver_button_exec; - //op->poll= ??? // TODO: need to have some driver to be able to do this... + //op->poll = ??? // TODO: need to have some driver to be able to do this... /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; @@ -664,7 +664,7 @@ void ANIM_OT_paste_driver_button(wmOperatorType *ot) /* callbacks */ ot->exec = paste_driver_button_exec; - //op->poll= ??? // TODO: need to have some driver to be able to do this... + //op->poll = ??? // TODO: need to have some driver to be able to do this... /* flags */ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c index 36c15c50809..18e3d967835 100644 --- a/source/blender/editors/armature/poselib.c +++ b/source/blender/editors/armature/poselib.c @@ -1236,7 +1236,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE case PAD5: case PAD6: case PAD7: case PAD8: case PAD9: case PADPLUSKEY: case PADMINUS: case MIDDLEMOUSE: case MOUSEMOVE: - //pld->redraw= PL_PREVIEW_REDRAWHEADER; + //pld->redraw = PL_PREVIEW_REDRAWHEADER; ret = OPERATOR_PASS_THROUGH; break; @@ -1365,7 +1365,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE * even though we still maintain control (as RUNNING_MODAL flag is still set too) */ case MIDDLEMOUSE: case MOUSEMOVE: - //pld->redraw= PL_PREVIEW_REDRAWHEADER; + //pld->redraw = PL_PREVIEW_REDRAWHEADER; ret = OPERATOR_PASS_THROUGH; break; @@ -1379,7 +1379,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE } else { /* view manipulation (see above) */ - //pld->redraw= PL_PREVIEW_REDRAWHEADER; + //pld->redraw = PL_PREVIEW_REDRAWHEADER; ret = OPERATOR_PASS_THROUGH; } break; diff --git a/source/blender/editors/armature/poseobject.c b/source/blender/editors/armature/poseobject.c index df970171a54..a8e84116699 100644 --- a/source/blender/editors/armature/poseobject.c +++ b/source/blender/editors/armature/poseobject.c @@ -119,8 +119,8 @@ void ED_armature_exit_posemode(bContext *C, Base *base) } } -/* if a selected or active bone is protected, throw error (oonly if warn==1) and return 1 */ -/* only_selected==1 : the active bone is allowed to be protected */ +/* if a selected or active bone is protected, throw error (oonly if warn == 1) and return 1 */ +/* only_selected == 1: the active bone is allowed to be protected */ #if 0 /* UNUSED 2.5 */ static short pose_has_protected_selected(Object *ob, short warn) { @@ -571,7 +571,7 @@ static short pose_select_same_group(bContext *C, Object *ob, short extend) /* alloc a small array to keep track of the groups to use * - each cell stores on/off state for whether group should be used - * - size is numGroups + 1, since index=0 is used for no-group + * - size is (numGroups + 1), since (index = 0) is used for no-group */ group_flags = MEM_callocN(numGroups + 1, "pose_select_same_group"); diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 431ce15a26d..492111ff8e7 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1448,7 +1448,7 @@ static short isNurbselUV(Nurb *nu, int *u, int *v, int flag) if (*u == -1) *u = b; else return 0; } - else if (sel > 1) return 0; /* because sel==1 is still ok */ + else if (sel > 1) return 0; /* because sel == 1 is still ok */ } for (a = 0; a < nu->pntsu; a++) { @@ -2965,7 +2965,7 @@ static void subdividenurb(Object *obedit, int number_cuts) BKE_nurb_knot_calc_u(nu); } } - } /* End of 'else if (nu->pntsv==1)' */ + } /* End of 'else if (nu->pntsv == 1)' */ else if (nu->type == CU_NURBS) { /* This is a very strange test ... */ /** @@ -3085,7 +3085,7 @@ static void subdividenurb(Object *obedit, int number_cuts) nu->pntsv = (number_cuts + 1) * nu->pntsv - number_cuts; BKE_nurb_knot_calc_u(nu); BKE_nurb_knot_calc_v(nu); - } /* End of 'if (sel== nu->pntsu*nu->pntsv)' (subdivide entire NURB) */ + } /* End of 'if (sel == nu->pntsu*nu->pntsv)' (subdivide entire NURB) */ else { /* subdivide in v direction? */ sel = 0; @@ -3258,7 +3258,7 @@ static void findnearestNurbvert__doClosest(void *userData, Nurb *nu, BPoint *bp, static short findnearestNurbvert(ViewContext *vc, short sel, const int mval[2], Nurb **nurb, BezTriple **bezt, BPoint **bp) { - /* sel==1: selected gets a disadvantage */ + /* (sel == 1): selected gets a disadvantage */ /* in nurb and bezt or bp the nearest is written */ /* return 0 1 2: handlepunt */ struct { BPoint *bp; BezTriple *bezt; Nurb *nurb; int dist, hpoint, select, mval[2]; } data = {NULL}; @@ -3765,8 +3765,8 @@ static void merge_2_nurb(wmOperator *op, ListBase *editnurb, Nurb *nu1, Nurb *nu if (is_u_selected(nu1, nu1->pntsu - 1) ) ; else { - /* For 2D curves blender uses orderv=0. It doesn't make any sense mathematically. */ - /* but after rotating orderu=0 will be confusing. */ + /* For 2D curves blender uses (orderv = 0). It doesn't make any sense mathematically. */ + /* but after rotating (orderu = 0) will be confusing. */ if (nu1->orderv == 0) nu1->orderv = 1; rotate_direction_nurb(nu1); diff --git a/source/blender/editors/datafiles/Bfont.c b/source/blender/editors/datafiles/Bfont.c index 969bc5a844d..30126c97d34 100644 --- a/source/blender/editors/datafiles/Bfont.c +++ b/source/blender/editors/datafiles/Bfont.c @@ -30,8 +30,8 @@ * \brief DataToC output of file <Bfont> */ -int datatoc_Bfont_size= 25181; -char datatoc_Bfont[25181]= { +int datatoc_Bfont_size = 25181; +char datatoc_Bfont[25181] = { 128, 1, 228, 1, 0, 0, 37, 33, 80, 83, 45, 65, 100, 111, 98, 101, 70, 111, 110, 116, 45, 49, 46, 48, 58, 32, 66, 102, 111, 110, 116, 32, 48, 48, 49, 46, 48, 48, 49, 10, 49, 49, 32, 100, 105, 99, 116, 32, diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index cbe44505263..e2dbb06fa2f 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -932,7 +932,7 @@ static void check_panel_overlap(ARegion *ar, Panel *panel) { Panel *pa; - /* also called with panel==NULL for clear */ + /* also called with (panel == NULL) for clear */ for (pa = ar->panels.first; pa; pa = pa->next) { pa->flag &= ~PNL_OVERLAP; @@ -1024,7 +1024,7 @@ static void ui_handle_panel_header(const bContext *C, uiBlock *block, int mx, in else if (block->panel->control & UI_PNL_CLOSE) { /* whole of header can be used to collapse panel (except top-right corner) */ if (mx <= block->maxx - 8 - PNL_ICON) button = 2; - //else if (mx <= block->minx+10+2*PNL_ICON+2) button= 1; + //else if (mx <= block->minx + 10 + 2 * PNL_ICON + 2) button = 1; } else if (mx <= block->maxx - PNL_ICON - 12) { button = 1; diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index b690d1f9dc9..dd6be9141ca 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -1304,16 +1304,16 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but, } } - /*aspect= (float)(block->maxx - block->minx + 4);*/ /*UNUSED*/ + /* aspect = (float)(block->maxx - block->minx + 4);*/ /*UNUSED*/ ui_block_to_window_fl(butregion, but->block, &block->minx, &block->miny); ui_block_to_window_fl(butregion, but->block, &block->maxx, &block->maxy); - //block->minx-= 2.0; block->miny-= 2.0; - //block->maxx+= 2.0; block->maxy+= 2.0; + //block->minx -= 2.0; block->miny -= 2.0; + //block->maxx += 2.0; block->maxy += 2.0; xsize = block->maxx - block->minx + 4; // 4 for shadow ysize = block->maxy - block->miny + 4; - /*aspect/= (float)xsize;*/ /*UNUSED*/ + /* aspect /= (float)xsize;*/ /*UNUSED*/ { int left = 0, right = 0, top = 0, down = 0; @@ -2706,7 +2706,7 @@ void uiPupBlockEx(bContext *C, uiBlockCreateFunc func, uiBlockHandleFunc popup_f handle->popup_arg = arg; handle->popup_func = popup_func; handle->cancel_func = cancel_func; - // handle->opcontext= opcontext; + // handle->opcontext = opcontext; UI_add_popup_handlers(C, &window->modalhandlers, handle); WM_event_add_mousemove(C); diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 6d1766c8bf1..59ef0c00283 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -350,7 +350,7 @@ static void template_ID(bContext *C, uiLayout *layout, TemplateID *template, Str idptr = RNA_property_pointer_get(&template->ptr, template->prop); id = idptr.data; idfrom = template->ptr.id.data; - // lb= template->idlb; + // lb = template->idlb; block = uiLayoutGetBlock(layout); uiBlockBeginAlign(block); @@ -2299,7 +2299,7 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe void uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *activeptr, const char *activepropname, const char *prop_list, int rows, int maxrows, int listtype) { - //Scene *scene= CTX_data_scene(C); + //Scene *scene = CTX_data_scene(C); PropertyRNA *prop = NULL, *activeprop; PropertyType type, activetype; StructRNA *ptype; diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 87c2f2dc20b..1a7fc98ef74 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2245,7 +2245,7 @@ void ui_draw_link_bezier(rcti *rect) if (ui_link_bezier_points(rect, coord_array, LINK_RESOL)) { /* we can reuse the dist variable here to increment the GL curve eval amount*/ - // const float dist= 1.0f/(float)LINK_RESOL; // UNUSED + // const float dist = 1.0f/(float)LINK_RESOL; // UNUSED glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 0d16e0f4dc0..edad33953b9 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1265,7 +1265,7 @@ void init_userdef_do_versions(void) if (U.undosteps == 0) U.undosteps = 32; for (btheme = U.themes.first; btheme; btheme = btheme->next) { - /* check for alpha==0 is safe, then color was never set */ + /* check for (alpha == 0) is safe, then color was never set */ if (btheme->tv3d.edge_seam[3] == 0) { rgba_char_args_set(btheme->tv3d.edge_seam, 230, 150, 50, 255); } @@ -1290,7 +1290,7 @@ void init_userdef_do_versions(void) bTheme *btheme; /* new space type */ for (btheme = U.themes.first; btheme; btheme = btheme->next) { - /* check for alpha==0 is safe, then color was never set */ + /* check for (alpha == 0) is safe, then color was never set */ if (btheme->ttime.back[3] == 0) { // copied from ui_theme_init_default btheme->ttime = btheme->tv3d; diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 1d315e9a5b8..b2227405d8b 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -272,7 +272,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) v2d->keepzoom = (V2D_KEEPASPECT | V2D_LIMITZOOM | V2D_KEEPZOOM); v2d->minzoom = 0.5f; v2d->maxzoom = 2.0f; - //tot_changed= 1; + //tot_changed = 1; v2d->align = (V2D_ALIGN_NO_NEG_X | V2D_ALIGN_NO_POS_Y); v2d->keeptot = V2D_KEEPTOT_BOUNDS; @@ -428,7 +428,7 @@ void UI_view2d_curRect_validate_resize(View2D *v2d, int resize) if (winx != v2d->oldwinx) do_x = TRUE; if (winy != v2d->oldwiny) do_y = TRUE; - /* curRatio= height / width; */ /* UNUSED */ + /* curRatio = height / width; */ /* UNUSED */ winRatio = winy / winx; /* both sizes change (area/region maximised) */ @@ -442,7 +442,7 @@ void UI_view2d_curRect_validate_resize(View2D *v2d, int resize) else do_x = TRUE; } do_cur = do_x; - /* do_win= do_y; */ /* UNUSED */ + /* do_win = do_y; */ /* UNUSED */ if (do_cur) { if ((v2d->keeptot == V2D_KEEPTOT_STRICT) && (winx != v2d->oldwinx)) { @@ -806,7 +806,7 @@ void UI_view2d_curRect_reset(View2D *v2d) v2d->cur.xmax = (float)width; } else { - /* width is centered around x==0 */ + /* width is centered around (x == 0) */ const float dx = (float)width / 2.0f; v2d->cur.xmin = -dx; @@ -825,7 +825,7 @@ void UI_view2d_curRect_reset(View2D *v2d) v2d->cur.ymax = (float)height; } else { - /* height is centered around y==0 */ + /* height is centered around (y == 0) */ const float dy = (float)height / 2.0f; v2d->cur.ymin = -dy; @@ -869,7 +869,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize v2d->tot.xmax = (float)width; } else { - /* width is centered around x==0 */ + /* width is centered around (x == 0) */ const float dx = (float)width / 2.0f; v2d->tot.xmin = -dx; @@ -888,7 +888,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize v2d->tot.ymax = (float)height; } else { - /* height is centered around y==0 */ + /* height is centered around (y == 0) */ const float dy = (float)height / 2.0f; v2d->tot.ymin = -dy; diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 88fb728f334..ed86cb67687 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -2242,11 +2242,11 @@ static void project_bucket_clip_face( * * i = l * while i < len(me.verts): - * ii = i+1 - * if ii==len(me.verts): + * ii = i + 1 + * if ii == len(me.verts): * ii = l * me.edges.extend([i, ii]) - * i+=1 + * i += 1 * * if __name__ == '__main__': * main() |