style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Oct 2012 04:14:10 +0000 (04:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Oct 2012 04:14:10 +0000 (04:14 +0000)
73 files changed:
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/booleanops_mesh.c
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/key.c
source/blender/compositor/operations/COM_OpenCLKernels.cl
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/armature/editarmature.c
source/blender/editors/gpencil/editaction_gpencil.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/editors/object/object_vgroup.c
source/blender/editors/screen/area.c
source/blender/editors/sculpt_paint/paint_ops.c
source/blender/editors/space_action/action_draw.c
source/blender/editors/space_action/action_select.c
source/blender/editors/space_action/space_action.c
source/blender/editors/space_console/console_ops.c
source/blender/editors/space_console/space_console.c
source/blender/editors/space_file/file_draw.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_graph/graph_buttons.c
source/blender/editors/space_image/image_draw.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_info/info_draw.c
source/blender/editors/space_info/info_report.c
source/blender/editors/space_info/space_info.c
source/blender/editors/space_logic/logic_buttons.c
source/blender/editors/space_logic/logic_window.c
source/blender/editors/space_nla/nla_buttons.c
source/blender/editors/space_node/drawnode.c
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_outliner/outliner_select.c
source/blender/editors/space_outliner/outliner_tree.c
source/blender/editors/space_sequencer/sequencer_draw.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_sequencer/sequencer_select.c
source/blender/editors/space_sequencer/space_sequencer.c
source/blender/editors/space_text/space_text.c
source/blender/editors/space_text/text_draw.c
source/blender/editors/space_view3d/drawanimviz.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/space_view3d/view3d_view.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_manipulator.c
source/blender/makesrna/intern/rna_armature.c
source/blender/makesrna/intern/rna_boid.c
source/blender/makesrna/intern/rna_cloth.c
source/blender/makesrna/intern/rna_controller.c
source/blender/makesrna/intern/rna_curve.c
source/blender/makesrna/intern/rna_define.c
source/blender/makesrna/intern/rna_fluidsim.c
source/blender/makesrna/intern/rna_image.c
source/blender/makesrna/intern/rna_material.c
source/blender/makesrna/intern/rna_rna.c
source/blender/makesrna/intern/rna_ui_api.c
source/blender/makesrna/intern/rna_userdef.c
source/blender/makesrna/intern/rna_wm.c
source/blender/modifiers/intern/MOD_explode.c
source/blender/modifiers/intern/MOD_fluidsim_util.c
source/blender/modifiers/intern/MOD_screw.c
source/blender/nodes/intern/node_util.c
source/blender/python/intern/bpy_rna_array.c
source/blender/quicktime/apple/qtkit_export.m
source/blender/quicktime/apple/qtkit_import.m

index 118bcd86f10b77e67d7e96b61a2e14fd35695617..b13e8b4db06864ed07e83affc6502c791a730ab6 100644 (file)
@@ -2558,7 +2558,7 @@ void DM_add_tangent_layer(DerivedMesh *dm)
 
 void DM_calc_auto_bump_scale(DerivedMesh *dm)
 {
-       /* int totvert= dm->getNumVerts(dm); */ /* UNUSED */
+       /* int totvert = dm->getNumVerts(dm); */ /* UNUSED */
        int totface = dm->getNumTessFaces(dm);
 
        MVert *mvert = dm->getVertArray(dm);
index f1169950acde98747b0555cf86a83b76375a7b1e..461b945282fccc71b0a778a31d4639a09df9d512 100644 (file)
@@ -142,7 +142,7 @@ CSG_AddMeshToBlender(
 
        /* Create a new blender mesh object - using 'base' as
         * a template for the new object. */
-       ob_new=  AddNewBlenderMesh(mesh->base);
+       ob_new =  AddNewBlenderMesh(mesh->base);
 
        me_new = ob_new->data;
 
index e7e645bd4259cda9ff943e980724aa68d7308244..90a07b2012edca2f54a0b93b18104725dd65064d 100644 (file)
@@ -1945,7 +1945,7 @@ static void bevel_list_smooth(BevList *bl, int smooth_iter)
 
                if (bl->poly == -1) { /* check its not cyclic */
                        /* skip the first point */
-                       /* bevp0= bevp1; */
+                       /* bevp0 = bevp1; */
                        bevp1 = bevp2;
                        bevp2++;
                        nr--;
@@ -1974,7 +1974,7 @@ static void bevel_list_smooth(BevList *bl, int smooth_iter)
                        interp_qt_qtqt(bevp1->quat, bevp1->quat, q, 0.5);
                        normalize_qt(bevp1->quat);
 
-                       /* bevp0= bevp1; */ /* UNUSED */
+                       /* bevp0 = bevp1; */ /* UNUSED */
                        bevp1 = bevp2;
                        bevp2++;
                }
@@ -2151,7 +2151,7 @@ static void make_bevel_list_3D_tangent(BevList *bl)
                normalize_v3(cross_tmp);
                tri_to_quat(bevp1->quat, zero, cross_tmp, bevp1->tan); /* XXX - could be faster */
 
-               /* bevp0= bevp1; */ /* UNUSED */
+               /* bevp0 = bevp1; */ /* UNUSED */
                bevp1 = bevp2;
                bevp2++;
        }
index 7df5449b1b155ec3d4b7e7f6a4c283e90dff1e26..782d796b8a7e7349505f7baea8bd90156360006d 100644 (file)
@@ -389,7 +389,7 @@ static int setkeys(float fac, ListBase *lb, KeyBlock *k[], float t[4], int cycl)
                        if (k1->next == NULL) k[0] = k1;
                        k1 = k1->next;
                }
-               /* k1= k[1]; */ /* UNUSED */
+               /* k1 = k[1]; */ /* UNUSED */
                t[0] = k[0]->pos;
                t[1] += dpos;
                t[2] = k[2]->pos + dpos;
index b4d56a9c812dce5d93333ec503bd50c47e989ae8..36205bb94cc651f79326ae574cb585ce2d350836 100644 (file)
@@ -54,10 +54,10 @@ __kernel void bokehBlurKernel(__read_only image2d_t boundingBox, __read_only ima
                float2 uv;
                int2 inputXy;
                
-               for (ny = minXY.y, inputXy.y = ny - offsetInput.y ; ny < maxXY.y ; ny +=step, inputXy.y+=step) {
+               for (ny = minXY.y, inputXy.y = ny - offsetInput.y ; ny < maxXY.y ; ny += step, inputXy.y += step) {
                        uv.y = ((realCoordinate.y-ny)/radius2)*bokehImageDim.y+bokehImageCenter.y;
                        
-                       for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx +=step, inputXy.x+=step) {
+                       for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx += step, inputXy.x += step) {
                                uv.x = ((realCoordinate.x-nx)/radius2)*bokehImageDim.x+bokehImageCenter.x;
                                bokeh = read_imagef(bokehImage, SAMPLER_NEAREST, uv);
                                color += bokeh * read_imagef(inputImage, SAMPLER_NEAREST, inputXy);
index 9e3ebfb41a21114f75532d20e55dac269f346577..573ebe156c575726a5f4662badb8da349d43bcc8 100644 (file)
@@ -3251,7 +3251,7 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, bAnimChann
        /* get the flag and the pointer to that flag */
        flag = acf->setting_flag(ac, setting, &negflag);
        ptr = acf->setting_ptr(ale, setting, &ptrsize);
-       /* enabled= ANIM_channel_setting_get(ac, ale, setting); */ /* UNUSED */
+       /* enabled = ANIM_channel_setting_get(ac, ale, setting); */ /* UNUSED */
        
        /* get the base icon for the setting */
        switch (setting) {
@@ -3266,13 +3266,13 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, bAnimChann
                        break;
                        
                case ACHANNEL_SETTING_EXPAND: /* expanded triangle */
-                       //icon= ((enabled)? ICON_TRIA_DOWN : ICON_TRIA_RIGHT);
+                       //icon = ((enabled)? ICON_TRIA_DOWN : ICON_TRIA_RIGHT);
                        icon = ICON_TRIA_RIGHT;
                        tooltip = "Make channels grouped under this channel visible";
                        break;
                        
                case ACHANNEL_SETTING_SOLO: /* NLA Tracks only */
-                       //icon= ((enabled)? ICON_LAYER_ACTIVE : ICON_LAYER_USED);
+                       //icon = ((enabled)? ICON_LAYER_ACTIVE : ICON_LAYER_USED);
                        icon = ICON_LAYER_USED;
                        tooltip = "NLA Track is the only one evaluated for the AnimData block it belongs to";
                        break;
@@ -3281,13 +3281,13 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, bAnimChann
                
                case ACHANNEL_SETTING_PROTECT: /* protected lock */
                        // TODO: what about when there's no protect needed?
-                       //icon= ((enabled)? ICON_LOCKED : ICON_UNLOCKED);
+                       //icon = ((enabled)? ICON_LOCKED : ICON_UNLOCKED);
                        icon = ICON_UNLOCKED;
                        tooltip = "Editability of keyframes for this channel";
                        break;
                        
                case ACHANNEL_SETTING_MUTE: /* muted speaker */
-                       //icon= ((enabled)? ICON_MUTE_IPO_ON : ICON_MUTE_IPO_OFF);
+                       //icon = ((enabled)? ICON_MUTE_IPO_ON : ICON_MUTE_IPO_OFF);
                        icon = ICON_MUTE_IPO_OFF;
                        
                        if (ale->type == ALE_FCURVE) 
@@ -3370,7 +3370,7 @@ void ANIM_channel_draw_widgets(bContext *C, bAnimContext *ac, bAnimListElem *ale
        y = (ymaxc - yminc) / 2 + yminc;
        ymid = y - 7;
        /* y-coordinates for text is only 4 down from middle */
-       /* ytext= y - 4; */
+       /* ytext = y - 4; */
        
        /* no button backdrop behind icons */
        uiBlockSetEmboss(block, UI_EMBOSSN);
index 0a244db5df85892d9188596d1275083ef668d67e..15efe71397f84cad84b2543319887c243e7ae8c1 100644 (file)
@@ -2886,7 +2886,7 @@ static int armature_fill_bones_exec(bContext *C, wmOperator *op)
                mul_v3_m4v3(curs, obedit->imat, give_cursor(scene, v3d));
                
                /* Create a bone */
-               /* newbone= */ add_points_bone(obedit, ebp->vec, curs);
+               /* newbone = */ add_points_bone(obedit, ebp->vec, curs);
        }
        else if (count == 2) {
                EditBonePoint *ebp, *ebp2;
index a1a39c1be1a04a39eab7e352d46f610e4312508f..a59a3f7a5ec4461abfdb6394f95d4e04f04207e8 100644 (file)
@@ -393,7 +393,7 @@ void paste_gpdata(Scene *scene)
                                ScrArea *sa;
                                
                                /* get area that gp-data comes from */
-                               //sa= gpencil_data_findowner((bGPdata *)ale->owner);
+                               //sa = gpencil_data_findowner((bGPdata *)ale->owner);
                                sa = NULL;
                                
                                /* this should be the right frame... as it may be a pre-existing frame, 
index 94dccd61c3a48042d26e22cc748beb91c9b0f754..81327ad10a24768218c1772acbb8f578abb83eed 100644 (file)
@@ -1463,7 +1463,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
                if (top == 0 && down == 0) {
                        if (dir1 == UI_LEFT || dir1 == UI_RIGHT) {
                                /* align with bottom of screen */
-                               // yof= ysize; (not with menu scrolls)
+                               // yof = ysize; (not with menu scrolls)
                        }
                }
                
index b0e6bd633135f75a0ccabef3ef6ee37ffca9eca8..9a57f9d0ba87cea889ecee299ce9b3089ca00528 100644 (file)
@@ -1407,7 +1407,7 @@ static int convert_exec(bContext *C, wmOperator *op)
                         * cases this doesnt give correct results (when MDEF is used for eg)
                         */
                        dm = mesh_get_derived_final(scene, newob, CD_MASK_MESH);
-                       /* dm= mesh_create_derived_no_deform(ob1, NULL);        this was called original (instead of get_derived). man o man why! (ton) */
+                       // dm = mesh_create_derived_no_deform(ob1, NULL);  /* this was called original (instead of get_derived). man o man why! (ton) */
 
                        DM_to_mesh(dm, newob->data, newob);
 
index 2511389ebcbcec2aa2361ed728eec34fb13e0b79..4e1eaea70e426061413ba811deef3a6660edf226 100644 (file)
@@ -1273,7 +1273,7 @@ static int move_to_layer_exec(bContext *C, wmOperator *op)
                        local = base->lay & 0xFF000000;
                        base->lay = lay + local;
                        base->object->lay = lay;
-                       /* if (base->object->type==OB_LAMP) is_lamp = TRUE; */
+                       /* if (base->object->type == OB_LAMP) is_lamp = TRUE; */
                }
                CTX_DATA_END;
        }
index 9dbf9049bfce956d8b4ea1ab83d801a11ff95a62..3d96ea117158592a9f8cf661c220b94d40f1909f 100644 (file)
@@ -1651,11 +1651,11 @@ static void vgroup_blend(Object *ob, const float fac)
                                        /* i1 is always the selected one */
                                        if (sel1) {
                                                i1 = BM_elem_index_get(eed->v1);
-                                               /* i2= BM_elem_index_get(eed->v2); */ /* UNUSED */
+                                               /* i2 = BM_elem_index_get(eed->v2); */ /* UNUSED */
                                                eve = eed->v2;
                                        }
                                        else {
-                                               /* i2= BM_elem_index_get(eed->v1); */ /* UNUSED */
+                                               /* i2 = BM_elem_index_get(eed->v1); */ /* UNUSED */
                                                i1 = BM_elem_index_get(eed->v2);
                                                eve = eed->v1;
                                        }
index fa0ce8c4d0757293b86874a4564540558349b36f..aed801a6350b5fa58765a03b385e6d43c5a4613f 100644 (file)
@@ -1265,7 +1265,7 @@ void ED_area_initialize(wmWindowManager *wm, wmWindow *win, ScrArea *sa)
 /* externally called for floating regions like menus */
 void ED_region_init(bContext *C, ARegion *ar)
 {
-//     ARegionType *at= ar->type;
+//     ARegionType *at = ar->type;
        
        /* refresh can be called before window opened */
        region_subwindow(CTX_wm_window(C), ar);
index 39a95300d5de56af1eaf84af405f38c0167609d6..40dcb92f087781a7ff30ae650901fd1eaf66bba6 100644 (file)
@@ -93,7 +93,7 @@ static int brush_scale_size_exec(bContext *C, wmOperator *op)
        Scene *scene = CTX_data_scene(C);
        Paint  *paint =  paint_get_active_from_context(C);
        struct Brush  *brush =  paint_brush(paint);
-       // Object *ob=     CTX_data_active_object(C);
+       // Object *ob = CTX_data_active_object(C);
        float scalar = RNA_float_get(op->ptr, "scalar");
 
        if (brush) {
index 91bc52f7053befc6b55e6f4a0c9f00b7fd1ddef7..9bd7d2a44ca9cfb0db69f5cd65a0b82012f881f0 100644 (file)
@@ -189,7 +189,7 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
 
        /* if in NLA there's a strip active, map the view */
        if (ac->datatype == ANIMCONT_ACTION) {
-               /* adt= ANIM_nla_mapping_get(ac, NULL); */ /* UNUSED */
+               /* adt = ANIM_nla_mapping_get(ac, NULL); */ /* UNUSED */
                
                /* start and end of action itself */
                calc_action_range(ac->data, &act_start, &act_end, 0);
index 1602d3b65918e1e7ba0fe5b3e8d84ef5ca88d9bf..d0f76c21019c4402c8cf3bcf1d5eb997db1eb793 100644 (file)
@@ -1210,7 +1210,7 @@ static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *even
                return OPERATOR_CANCELLED;
                
        /* get useful pointers from animation context data */
-       /* ar= ac.ar; */ /* UNUSED */
+       /* ar = ac.ar; */ /* UNUSED */
 
        /* select mode is either replace (deselect all, then add) or add/extend */
        if (RNA_boolean_get(op->ptr, "extend"))
index 7ae668bc0bbb8acf96a47e0d20787748d0411fa1..c5f3ccee101559dd78e9b634f18b5fddfaaea034 100644 (file)
@@ -129,7 +129,7 @@ static SpaceLink *action_new(const bContext *C)
 /* not spacelink itself */
 static void action_free(SpaceLink *UNUSED(sl))
 {      
-//     SpaceAction *saction= (SpaceAction *) sl;
+//     SpaceAction *saction = (SpaceAction *) sl;
 }
 
 
index ccdbc38936c274f5e11a2a27c8fb72395d2a643e..c2344cca557e1d2603a5972c7e351cffdd518889 100644 (file)
@@ -651,7 +651,7 @@ static int console_clear_exec(bContext *C, wmOperator *op)
        short scrollback = RNA_boolean_get(op->ptr, "scrollback");
        short history = RNA_boolean_get(op->ptr, "history");
        
-       /*ConsoleLine *ci= */ console_history_verify(C);
+       /*ConsoleLine *ci = */ console_history_verify(C);
        
        if (scrollback) { /* last item in mistory */
                while (sc->scrollback.first)
@@ -1051,7 +1051,7 @@ static void console_modal_select_apply(bContext *C, wmOperator *op, wmEvent *eve
 
 static void console_cursor_set_exit(bContext *UNUSED(C), wmOperator *op)
 {
-//     SpaceConsole *sc= CTX_wm_space_console(C);
+//     SpaceConsole *sc = CTX_wm_space_console(C);
        SetConsoleCursor *scu = op->customdata;
 
 #if 0
@@ -1068,7 +1068,7 @@ static void console_cursor_set_exit(bContext *UNUSED(C), wmOperator *op)
 static int console_modal_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
 {
        SpaceConsole *sc = CTX_wm_space_console(C);
-//     ARegion *ar= CTX_wm_region(C);
+//     ARegion *ar = CTX_wm_region(C);
        SetConsoleCursor *scu;
 
        op->customdata = MEM_callocN(sizeof(SetConsoleCursor), "SetConsoleCursor");
index b7ef278275e56ef46a3153c75bfaa59418f1d189..75add570708acc6a0f1e44fe804723dfbf3447c5 100644 (file)
@@ -91,7 +91,7 @@ static SpaceLink *console_new(const bContext *UNUSED(C))
        ar->v2d.minzoom = ar->v2d.maxzoom = 1.0f;
 
        /* for now, aspect ratio should be maintained, and zoom is clamped within sane default limits */
-       //ar->v2d.keepzoom= (V2D_KEEPASPECT|V2D_LIMITZOOM);
+       //ar->v2d.keepzoom = (V2D_KEEPASPECT|V2D_LIMITZOOM);
 
        return (SpaceLink *)sconsole;
 }
@@ -162,7 +162,7 @@ static void console_main_area_init(wmWindowManager *wm, ARegion *ar)
 
 static int id_drop_poll(bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
 {
-//     SpaceConsole *sc= CTX_wm_space_console(C);
+//     SpaceConsole *sc = CTX_wm_space_console(C);
        if (drag->type == WM_DRAG_ID)
                return 1;
        return 0;
@@ -184,7 +184,7 @@ static void id_drop_copy(wmDrag *drag, wmDropBox *drop)
 
 static int path_drop_poll(bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
 {
-//    SpaceConsole *sc= CTX_wm_space_console(C);
+       // SpaceConsole *sc = CTX_wm_space_console(C);
        if (drag->type == WM_DRAG_PATH)
                return 1;
        return 0;
@@ -359,7 +359,7 @@ static void console_header_area_draw(const bContext *C, ARegion *ar)
 
 static void console_main_area_listener(ARegion *ar, wmNotifier *wmn)
 {
-       // SpaceInfo *sinfo= sa->spacedata.first;
+       // SpaceInfo *sinfo = sa->spacedata.first;
 
        /* context changes */
        switch (wmn->category) {
index 2ea1b5d563bdfe716d7d6edcc8a96680e5162541..cd0347a4dbc095c93e71b3837e58aab9a6dc3e3a 100644 (file)
@@ -280,7 +280,7 @@ static void file_draw_icon(uiBlock *block, char *path, int sx, int sy, int icon,
 {
        uiBut *but;
        int x, y;
-       /*float alpha=1.0f;*/
+       // float alpha = 1.0f;
        
        x = sx;
        y = sy - height;
index fc2b6de08a6a1641b7d9dd3f045c7b234c5cdffb..be037a0d5ba26e0f6c9e5515093916fd4c4ba9ce 100644 (file)
@@ -598,7 +598,7 @@ void ED_spacetype_file(void)
        art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_HEADER;
        art->init = file_header_area_init;
        art->draw = file_header_area_draw;
-       // art->listener= file_header_area_listener;
+       // art->listener = file_header_area_listener;
        BLI_addhead(&st->regiontypes, art);
        
        /* regions: ui */
index 551ef9535380bf9ba5dfd7062ff5f5b0f859325d..8bb57a32090558d4cab9bacfbfbef80d8225517f 100644 (file)
@@ -77,7 +77,7 @@
 
 static void do_graph_region_buttons(bContext *UNUSED(C), void *UNUSED(arg), int event)
 {
-       //Scene *scene= CTX_data_scene(C);
+       //Scene *scene = CTX_data_scene(C);
        
        switch (event) {
 
index 96646ae00bd6b730557b7cf1b7aa3411e904b493..9fc2b981547a45e63e03b71eee69787d6845b8e3 100644 (file)
@@ -578,7 +578,7 @@ void draw_image_grease_pencil(bContext *C, short onlyv2d)
        }
        else {
                /* assume that UI_view2d_restore(C) has been called... */
-               //SpaceImage *sima= (SpaceImage *)CTX_wm_space_data(C);
+               //SpaceImage *sima = (SpaceImage *)CTX_wm_space_data(C);
                
                /* draw grease-pencil ('screen' strokes) */
                draw_gpencil_view2d(C, 0);
index 9225556f15c8f249673c11ba7333d055d22ba01f..3b14257cdb42b31e51e998811dffd1058e61198d 100644 (file)
@@ -183,7 +183,7 @@ static int space_image_poll(bContext *C)
 int space_image_main_area_poll(bContext *C)
 {
        SpaceImage *sima = CTX_wm_space_image(C);
-       // XXX ARegion *ar= CTX_wm_region(C);
+       // XXX ARegion *ar = CTX_wm_region(C);
 
        if (sima)
                return 1;  // XXX (ar && ar->type->regionid == RGN_TYPE_WINDOW);
@@ -1147,7 +1147,7 @@ static int save_image_options_init(SaveImageOptions *simopts, SpaceImage *sima,
                else {
                        simopts->im_format.imtype = BKE_ftype_to_imtype(ibuf->ftype);
                }
-               //simopts->subimtype= scene->r.subimtype; /* XXX - this is lame, we need to make these available too! */
+               //simopts->subimtype = scene->r.subimtype; /* XXX - this is lame, we need to make these available too! */
                simopts->im_format.quality = ibuf->ftype & 0xff;
 
                BLI_strncpy(simopts->filepath, ibuf->name, sizeof(simopts->filepath));
@@ -1688,7 +1688,7 @@ static int image_new_exec(bContext *C, wmOperator *op)
        else {
                Tex *tex = CTX_data_pointer_get_type(C, "texture", &RNA_Texture).data;
                if (tex && tex->type == TEX_IMAGE) {
-                       tex->ima= ima;
+                       tex->ima = ima;
                        ED_area_tag_redraw(CTX_wm_area(C));
                }
        }
@@ -2370,8 +2370,8 @@ static int image_record_composite_apply(bContext *C, wmOperator *op)
        
        WM_cursor_time(CTX_wm_window(C), scene->r.cfra);
 
-       // XXX scene->nodetree->test_break= blender_test_break;
-       // XXX scene->nodetree->test_break= NULL;
+       // XXX scene->nodetree->test_break = blender_test_break;
+       // XXX scene->nodetree->test_break = NULL;
        
        BKE_image_all_free_anim_ibufs(scene->r.cfra);
        ntreeCompositTagAnimated(scene->nodetree);
index 35e19bcce38550e6d0d6dcd78ecc9932d6ce11f1..5830c4574dfc832d98d44b46b46892e30cd3988d 100644 (file)
@@ -136,7 +136,7 @@ static int report_textview_skip__internal(TextViewContext *tvc)
 
 static int report_textview_begin(TextViewContext *tvc)
 {
-       // SpaceConsole *sc= (SpaceConsole *)tvc->arg1;
+       // SpaceConsole *sc = (SpaceConsole *)tvc->arg1;
        ReportList *reports = (ReportList *)tvc->arg2;
 
        tvc->lheight = 14; //sc->lheight;
index 2324f735a33654de19aa8c52783d4dcac4f0f3af..049a50f89fcd7e87bb62f08b0a2fdd7e62459261 100644 (file)
@@ -68,9 +68,9 @@ int info_report_mask(SpaceInfo *UNUSED(sinfo))
 // TODO, get this working again!
 static int report_replay_exec(bContext *C, wmOperator *UNUSED(op))
 {
-//     SpaceInfo *sc= CTX_wm_space_info(C);
-//     ReportList *reports= CTX_wm_reports(C);
-//     int report_mask= info_report_mask(sc);
+//     SpaceInfo *sc = CTX_wm_space_info(C);
+//     ReportList *reports = CTX_wm_reports(C);
+//     int report_mask = info_report_mask(sc);
 //     Report *report;
 
 #if 0
@@ -223,7 +223,7 @@ static int borderselect_exec(bContext *C, wmOperator *op)
        int extend = RNA_boolean_get(op->ptr, "extend");
        Report *report_min, *report_max, *report;
 
-       //View2D *v2d= UI_view2d_fromcontext(C);
+       //View2D *v2d = UI_view2d_fromcontext(C);
 
 
        rcti rect;
index 076c648b4964edd617b9aeeb975d42775f904645..f108881091a1d8ae691ce41c350f5515fef0bad0 100644 (file)
@@ -93,7 +93,7 @@ static SpaceLink *info_new(const bContext *UNUSED(C))
        ar->v2d.minzoom = ar->v2d.maxzoom = 1.0f;
 
        /* for now, aspect ratio should be maintained, and zoom is clamped within sane default limits */
-       //ar->v2d.keepzoom= (V2D_KEEPASPECT|V2D_LIMITZOOM);
+       //ar->v2d.keepzoom = (V2D_KEEPASPECT|V2D_LIMITZOOM);
        
        return (SpaceLink *)sinfo;
 }
@@ -228,7 +228,7 @@ static void info_header_area_draw(const bContext *C, ARegion *ar)
 
 static void info_main_area_listener(ARegion *ar, wmNotifier *wmn)
 {
-       // SpaceInfo *sinfo= sa->spacedata.first;
+       // SpaceInfo *sinfo = sa->spacedata.first;
 
        /* context changes */
        switch (wmn->category) {
index f6aad6d9e29fa780681ca88a3f357ca28106f22c..e898a1baf743219abf3cbb35064255582f6ae68e 100644 (file)
@@ -52,8 +52,8 @@
 
 static int logic_properties(bContext *C, wmOperator *UNUSED(op))
 {
-       ScrArea *sa= CTX_wm_area(C);
-       ARegion *ar= logic_has_buttons_region(sa);
+       ScrArea *sa = CTX_wm_area(C);
+       ARegion *ar = logic_has_buttons_region(sa);
        
        if (ar)
                ED_region_toggle_hidden(C, ar);
@@ -100,9 +100,9 @@ static int cut_links_intersect(uiLinkLine *line, float mcoords[][2], int tot)
 
 static int cut_links_exec(bContext *C, wmOperator *op)
 {
-       ARegion *ar= CTX_wm_region(C);
+       ARegion *ar = CTX_wm_region(C);
        float mcoords[256][2];
-       int i= 0;
+       int i = 0;
        
        RNA_BEGIN (op->ptr, itemptr, "path")
        {
@@ -121,19 +121,19 @@ static int cut_links_exec(bContext *C, wmOperator *op)
                uiBlock *block;
                uiLinkLine *line, *nline;
                uiBut *but;
-               for (block= ar->uiblocks.first; block; block= block->next) {
-                       but= block->buttons.first;
+               for (block = ar->uiblocks.first; block; block = block->next) {
+                       but = block->buttons.first;
                        while (but) {
                                if (but->type==LINK && but->link) {
-                                       for (line= but->link->lines.first; line; line= nline) {
-                                               nline= line->next;
+                                       for (line = but->link->lines.first; line; line = nline) {
+                                               nline = line->next;
 
                                                if (cut_links_intersect(line, mcoords, i)) {
                                                        ui_delete_linkline(line, but);
                                                }
                                        }
                                }
-                               but= but->next;
+                               but = but->next;
                        }
                }
                return OPERATOR_FINISHED;
@@ -159,7 +159,7 @@ void LOGIC_OT_links_cut(wmOperatorType *ot)
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
+       prop = RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
        RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
        /* internal */
        RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
index 5e13b4e3fb4223e725693c73b2c0670e1b353796..bffabe6d16074fd9b41a4bcc118ed6ba2905b25b 100644 (file)
@@ -104,8 +104,8 @@ static int vergname(const void *v1, const void *v2)
 {
        char **x1, **x2;
        
-       x1= (char **)v1;
-       x2= (char **)v2;
+       x1 = (char **)v1;
+       x2 = (char **)v2;
        
        return BLI_natstrcmp(*x1, *x2);
 }
@@ -903,7 +903,7 @@ static uiBlock *controller_state_mask_menu(bContext *C, ARegion *ar, void *arg_c
        /* use this for a fake extra empy space around the buttons */
        uiDefBut(block, LABEL, 0, "",                   -5, -5, 200, 34, NULL, 0, 0, 0, 0, "");
        
-       for (offset=0; offset<15; offset+=5) {
+       for (offset=0; offset<15; offset += 5) {
                uiBlockBeginAlign(block);
                for (stbit=0; stbit<5; stbit++) {
                        but = uiDefButBitI(block, TOG, (1<<(stbit+offset)), (stbit+offset), "", (short)(xco+12*stbit+13*offset), yco, 12, 12, (int *)&(cont->state_mask), 0, 0, 0, 0, "");
index 444af307490b73afbf7a0ab412ae88a21c20d32b..d75946c431757f5ff51df9d7481929d1e92f4cf0 100644 (file)
@@ -71,7 +71,7 @@
 
 static void do_nla_region_buttons(bContext *C, void *UNUSED(arg), int event)
 {
-       //Scene *scene= CTX_data_scene(C);
+       //Scene *scene = CTX_data_scene(C);
        
        switch (event) {
 
@@ -242,7 +242,7 @@ static void nla_panel_animdata(const bContext *C, Panel *pa)
        if (!nla_panel_context(C, &adt_ptr, NULL, NULL))
                return;
 
-       /* adt= adt_ptr.data; */
+       /* adt = adt_ptr.data; */
        
        block = uiLayoutGetBlock(layout);
        uiBlockSetHandleFunc(block, do_nla_region_buttons, NULL);
index 1ee78b09554c4aea9f663c1c7b8452f3e0d84e7c..711944809fdb1d6bad16a9a73cef16ba41e5aa4c 100644 (file)
@@ -2580,7 +2580,7 @@ static void node_composit_buts_keyingscreen(uiLayout *layout, bContext *C, Point
 
 static void node_composit_buts_keying(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 {
-       /* bNode *node= ptr->data; */ /* UNUSED */
+       /* bNode *node = ptr->data; */ /* UNUSED */
 
        uiItemR(layout, ptr, "blur_pre", 0, NULL, ICON_NONE);
        uiItemR(layout, ptr, "screen_balance", 0, NULL, ICON_NONE);
index 05dcd55270b7a5e050cec12cbb5c458683c4e4db..1d3b21fe2d67212482732815d5fccb3334a5d5ee 100644 (file)
@@ -659,7 +659,7 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
        bNodeSocket *sock;
        rctf *rct = &node->totr;
        float iconofs;
-       /* float socket_size= NODE_SOCKSIZE*U.dpi/72; */ /* UNUSED */
+       /* float socket_size = NODE_SOCKSIZE*U.dpi/72; */ /* UNUSED */
        float iconbutw = 0.8f * UI_UNIT_X;
        int color_id = node_get_colorid(node);
        char showname[128]; /* 128 used below */
@@ -1099,7 +1099,7 @@ void drawnodespace(const bContext *C, ARegion *ar, View2D *v2d)
        /* aspect+font, set each time */
        snode->aspect = BLI_rctf_size_x(&v2d->cur) / (float)ar->winx;
        snode->aspect_sqrt = sqrtf(snode->aspect);
-       // XXX snode->curfont= uiSetCurFont_ext(snode->aspect);
+       // XXX snode->curfont = uiSetCurFont_ext(snode->aspect);
 
        /* grid */
        UI_view2d_multi_grid_draw(v2d, 25.0f, 5, 2);
index a14dae70e425891219a4ec2845002b0b3371e3b3..95413afcabae63db85f9eb02ccdf12de04858e48 100644 (file)
@@ -92,7 +92,7 @@ static void outliner_width(SpaceOops *soops, ListBase *lb, int *w)
 {
        TreeElement *te = lb->first;
        while (te) {
-//             TreeStoreElem *tselem= TREESTORE(te);
+//             TreeStoreElem *tselem = TREESTORE(te);
                
                // XXX fixme... te->xend is not set yet
                if (!TSELEM_OPEN(tselem, soops)) {
index b3e2a2c529e73a380e9fe9238c4385314daec870..cb3445739df43e7aa8041298cfa5a591b3a89b0a 100644 (file)
@@ -746,7 +746,7 @@ static void outliner_find_panel(Scene *UNUSED(scene), ARegion *ar, SpaceOops *so
                /* pop up panel - no previous, or user didn't want search after previous */
                name[0] = '\0';
 // XXX         if (sbutton(name, 0, sizeof(name)-1, "Find: ") && name[0]) {
-//                     te= outliner_find_name(soops, &soops->tree, name, flags, NULL, &prevFound);
+//                     te = outliner_find_name(soops, &soops->tree, name, flags, NULL, &prevFound);
 //             }
 //             else return; /* XXX RETURN! XXX */
        }
@@ -998,7 +998,7 @@ static void tree_element_to_path(SpaceOops *soops, TreeElement *te, TreeStoreEle
                                        char buf[128], *name;
                                        
                                        temnext = (TreeElement *)(ld->next->data);
-                                       /* tsenext= TREESTORE(temnext); */ /* UNUSED */
+                                       /* tsenext = TREESTORE(temnext); */ /* UNUSED */
                                        
                                        nextptr = &temnext->rnaptr;
                                        name = RNA_struct_name_get_alloc(nextptr, buf, sizeof(buf), NULL);
index 823de61d044268603ce67fb2bd613d7fd7902693..4668dfa13860c138ceb984fe037e99e0bf1a8d0f 100644 (file)
@@ -236,7 +236,7 @@ static int tree_element_active_texture(bContext *C, Scene *scene, SpaceOops *soo
        
        if (ob == NULL) return 0;  // no active object
        
-       /*tselem= TREESTORE(te);*/ /*UNUSED*/
+       /*tselem = TREESTORE(te);*/ /*UNUSED*/
        
        /* find buttons area (note, this is undefined really still, needs recode in blender) */
        /* XXX removed finding sbuts */
@@ -250,8 +250,8 @@ static int tree_element_active_texture(bContext *C, Scene *scene, SpaceOops *soo
 
                if (set) {
                        if (sbuts) {
-                               // XXX sbuts->tabo= TAB_SHADING_TEX;    // hack from header_buttonswin.c
-                               // XXX sbuts->texfrom= 1;
+                               // XXX sbuts->tabo = TAB_SHADING_TEX;   // hack from header_buttonswin.c
+                               // XXX sbuts->texfrom = 1;
                        }
 // XXX                 extern_set_butspace(F6KEY, 0);  // force shading buttons texture
                        wrld->texact = te->index;
@@ -264,8 +264,8 @@ static int tree_element_active_texture(bContext *C, Scene *scene, SpaceOops *soo
                Lamp *la = (Lamp *)tselemp->id;
                if (set) {
                        if (sbuts) {
-                               // XXX sbuts->tabo= TAB_SHADING_TEX;    // hack from header_buttonswin.c
-                               // XXX sbuts->texfrom= 2;
+                               // XXX sbuts->tabo = TAB_SHADING_TEX;   // hack from header_buttonswin.c
+                               // XXX sbuts->texfrom = 2;
                        }
 // XXX                 extern_set_butspace(F6KEY, 0);  // force shading buttons texture
                        la->texact = te->index;
@@ -280,8 +280,8 @@ static int tree_element_active_texture(bContext *C, Scene *scene, SpaceOops *soo
                Material *ma = (Material *)tselemp->id;
                if (set) {
                        if (sbuts) {
-                               //sbuts->tabo= TAB_SHADING_TEX; // hack from header_buttonswin.c
-                               // XXX sbuts->texfrom= 0;
+                               //sbuts->tabo = TAB_SHADING_TEX;        // hack from header_buttonswin.c
+                               // XXX sbuts->texfrom = 0;
                        }
 // XXX                 extern_set_butspace(F6KEY, 0);  // force shading buttons texture
                        ma->texact = (char)te->index;
index 25cc273d5dc0afdd83e56c71c33027e2fd3cf5dd..af890a81ad6a0bcca1484704125dc63ff4a115e8 100644 (file)
@@ -731,7 +731,7 @@ static void outliner_add_id_contents(SpaceOops *soops, TreeElement *te, TreeStor
                case ID_AC:
                {
                        // XXX do we want to be exposing the F-Curves here?
-                       //bAction *act= (bAction *)id;
+                       //bAction *act = (bAction *)id;
                }
                break;
                case ID_AR:
@@ -1148,7 +1148,7 @@ static void outliner_add_seq_dup(SpaceOops *soops, Sequence *seq, TreeElement *t
                }
 
                if (!strcmp(p->strip->stripdata->name, seq->strip->stripdata->name))
-                       /* ch= */ /* UNUSED */ outliner_add_element(soops, &te->subtree, (void *)p, te, TSE_SEQUENCE, index);
+                       /* ch = */ /* UNUSED */ outliner_add_element(soops, &te->subtree, (void *)p, te, TSE_SEQUENCE, index);
                p = p->next;
        }
 }
@@ -1531,7 +1531,7 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SpaceOops *soops)
                while (seq) {
                        op = need_add_seq_dup(seq);
                        if (op == 1) {
-                               /* ten= */ outliner_add_element(soops, &soops->tree, (void *)seq, NULL, TSE_SEQUENCE, 0);
+                               /* ten = */ outliner_add_element(soops, &soops->tree, (void *)seq, NULL, TSE_SEQUENCE, 0);
                        }
                        else if (op == 0) {
                                ten = outliner_add_element(soops, &soops->tree, (void *)seq, NULL, TSE_SEQUENCE_DUP, 0);
@@ -1569,7 +1569,7 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SpaceOops *soops)
                wmKeyMap *km;
                
                for (km = wm->defaultconf->keymaps.first; km; km = km->next) {
-                       /* ten= */ outliner_add_element(soops, &soops->tree, (void *)km, NULL, TSE_KEYMAP, 0);
+                       /* ten = */ outliner_add_element(soops, &soops->tree, (void *)km, NULL, TSE_KEYMAP, 0);
                }
        }
        else {
index c4b468317141c0091c6781bb43bd6fd1b44644e5..29babd355adf6769d08f7c40c86397f557e8f5db 100644 (file)
@@ -810,7 +810,7 @@ static void UNUSED_FUNCTION(set_special_seq_update) (int val)
 
        /* if mouse over a sequence && LEFTMOUSE */
        if (val) {
-// XXX         special_seq_update= find_nearest_seq(&x);
+// XXX         special_seq_update = find_nearest_seq(&x);
        }
        else special_seq_update = NULL;
 }
index 6b71fbe301e87da199036bbfca5050a3c35fe9d0..56fdccfb8f89a9099215fd6d4c78a1a1f5bd650c 100644 (file)
@@ -1056,7 +1056,7 @@ static int sequencer_snap_exec(bContext *C, wmOperator *op)
                {
                        if ((seq->flag & (SEQ_LEFTSEL + SEQ_RIGHTSEL)) == 0) {
                                /* simple but no anim update */
-                               /* seq->start= snap_frame-seq->startofs+seq->startstill; */
+                               /* seq->start = snap_frame-seq->startofs+seq->startstill; */
 
                                BKE_sequence_translate(scene, seq, (snap_frame - seq->startofs + seq->startstill) - seq->start);
                        }
@@ -3042,7 +3042,7 @@ static int sequencer_change_path_exec(bContext *C, wmOperator *op)
                seq->anim_startofs = seq->anim_endofs = 0;
 
                /* correct start/end frames so we don't move
-                * important not to set seq->len= len; allow the function to handle it */
+                * important not to set seq->len = len; allow the function to handle it */
                BKE_sequence_reload_new_file(scene, seq, TRUE);
 
                BKE_sequence_calc(scene, seq);
index b4d6662b68ce25cda1cf77e1d641de5beb7062e7..2c9b56d7a0d0a2064ae92ae21dddff85d2113139 100644 (file)
@@ -399,7 +399,7 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
                }
        }
        else {
-               // seq= find_nearest_seq(scene, v2d, &hand, mval);
+               // seq = find_nearest_seq(scene, v2d, &hand, mval);
 
                act_orig = ed->act_seq;
 
index 7bfe58cb50a950709a630b865a8d9d469b87046f..e8d47016608034f9f105acd76286a7218e35d640 100644 (file)
@@ -311,7 +311,7 @@ static SpaceLink *sequencer_duplicate(SpaceLink *sl)
        SpaceSeq *sseqn = MEM_dupallocN(sl);
        
        /* clear or remove stuff from old */
-// XXX sseq->gpd= gpencil_data_duplicate(sseq->gpd);
+// XXX sseq->gpd = gpencil_data_duplicate(sseq->gpd);
 
        return (SpaceLink *)sseqn;
 }
@@ -363,7 +363,7 @@ static void sequencer_main_area_init(wmWindowManager *wm, ARegion *ar)
 
 static void sequencer_main_area_draw(const bContext *C, ARegion *ar)
 {
-//     ScrArea *sa= CTX_wm_area(C);
+//     ScrArea *sa = CTX_wm_area(C);
        
        /* NLE - strip editing timeline interface */
        draw_timeline_seq(C, ar);
index 501e1cad67ed6d8af58a8dc5d04ab0e7fbb7adea..3f70b2cb66e971883668af0e4cba7fd1f517dc9f 100644 (file)
@@ -431,7 +431,7 @@ static void text_main_area_draw(const bContext *C, ARegion *ar)
 {
        /* draw entirely, view changes should be handled here */
        SpaceText *st = CTX_wm_space_text(C);
-       //View2D *v2d= &ar->v2d;
+       //View2D *v2d = &ar->v2d;
        
        /* clear and setup matrix */
        UI_ThemeClearColor(TH_BACK);
index 9b2722d3bd047833e0e7001dc8343c4c8099f697..464df8a2c9556e272478085b5fcefd7708ae21ad 100644 (file)
@@ -1355,7 +1355,7 @@ static void draw_documentation(SpaceText *st, ARegion *ar)
                x += SUGG_LIST_WIDTH * st->cwidth + 50;
        }
 
-       /* top= */ /* UNUSED */ y = ar->winy - st->lheight * l - 2;
+       /* top = */ /* UNUSED */ y = ar->winy - st->lheight * l - 2;
        boxw = DOC_WIDTH * st->cwidth + 20;
        boxh = (DOC_HEIGHT + 1) * st->lheight;
 
index c32d37a25fc35bcda6024245f6b646ca85feaf55..0649edc1ac42e3aa2f196fe43224564a67582b15 100644 (file)
@@ -84,7 +84,7 @@ void draw_motion_paths_init(View3D *v3d, ARegion *ar)
 void draw_motion_path_instance(Scene *scene, 
                                Object *ob, bPoseChannel *pchan, bAnimVizSettings *avs, bMotionPath *mpath)
 {
-       //RegionView3D *rv3d= ar->regiondata;
+       //RegionView3D *rv3d = ar->regiondata;
        bMotionPathVert *mpv, *mpv_start;
        int i, stepsize = avs->path_step;
        int sfra, efra, sind, len;
@@ -148,11 +148,11 @@ void draw_motion_path_instance(Scene *scene,
                if ((sfra + i) < CFRA) {
                        /* black - before cfra */
                        if (sel) {
-                               // intensity= 0.5f;
+                               // intensity = 0.5f;
                                intensity = SET_INTENSITY(sfra, i, CFRA, 0.25f, 0.75f);
                        }
                        else {
-                               //intensity= 0.8f;
+                               //intensity = 0.8f;
                                intensity = SET_INTENSITY(sfra, i, CFRA, 0.68f, 0.92f);
                        }
                        UI_ThemeColorBlend(TH_WIRE, TH_BACK, intensity);
index 8f504230065f4e0eedaef25191cf323cb0dbb1cd..beafee335d45a5fd04aac042e42cb28af81cd662 100644 (file)
@@ -647,7 +647,7 @@ static void draw_sphere_bone_dist(float smat[][4], float imat[][4], bPoseChannel
                /* this routine doesn't call get_matrix_editbone() that calculates it */
                ebone->length = len_v3v3(ebone->head, ebone->tail);
 
-               /*length= ebone->length;*/ /*UNUSED*/
+               /*length = ebone->length;*/ /*UNUSED*/
                tail = ebone->rad_tail;
                dist = ebone->dist;
                if (ebone->parent && (ebone->flag & BONE_CONNECTED))
@@ -658,7 +658,7 @@ static void draw_sphere_bone_dist(float smat[][4], float imat[][4], bPoseChannel
                tailvec = ebone->tail;
        }
        else {
-               /*length= pchan->bone->length;*/ /*UNUSED*/
+               /*length = pchan->bone->length;*/ /*UNUSED*/
                tail = pchan->bone->rad_tail;
                dist = pchan->bone->dist;
                if (pchan->parent && (pchan->bone->flag & BONE_CONNECTED))
@@ -767,7 +767,7 @@ static void draw_sphere_bone_wire(float smat[][4], float imat[][4],
                /* this routine doesn't call get_matrix_editbone() that calculates it */
                ebone->length = len_v3v3(ebone->head, ebone->tail);
                
-               /*length= ebone->length;*/ /*UNUSED*/
+               /*length = ebone->length;*/ /*UNUSED*/
                tail = ebone->rad_tail;
                if (ebone->parent && (boneflag & BONE_CONNECTED))
                        head = ebone->parent->rad_tail;
@@ -777,7 +777,7 @@ static void draw_sphere_bone_wire(float smat[][4], float imat[][4],
                tailvec = ebone->tail;
        }
        else {
-               /*length= pchan->bone->length;*/ /*UNUSED*/
+               /*length = pchan->bone->length;*/ /*UNUSED*/
                tail = pchan->bone->rad_tail;
                if ((pchan->parent) && (boneflag & BONE_CONNECTED))
                        head = pchan->parent->bone->rad_tail;
index 1e52df8ba533c80b02135ba4f7d751e27d4355a9..04549b53b6a83d6621e2bedb46be78c93125625b 100644 (file)
@@ -4427,7 +4427,7 @@ static void draw_new_particle_system(Scene *scene, View3D *v3d, RegionView3D *rv
 
                if (cdata2)
                        MEM_freeN(cdata2);
-               /* cd2= */ /* UNUSED */ cdata2 = NULL;
+               /* cd2 = */ /* UNUSED */ cdata2 = NULL;
 
                glLineWidth(1.0f);
 
@@ -5493,7 +5493,7 @@ static void drawcircle_size(float size)
 
        glBegin(GL_LINE_LOOP);
 
-       /* coordinates are: cos(degrees*11.25)=x, sin(degrees*11.25)=y, 0.0f=z */
+       /* coordinates are: cos(degrees * 11.25) = x, sin(degrees*11.25) = y, 0.0f = z */
        for (degrees = 0; degrees < CIRCLE_RESOL; degrees++) {
                x = cosval[degrees];
                y = sinval[degrees];
index 1c29e209d7c43fbad1dfb8424a67ed42640a3b5a..242a3327b78e88b1f4646db0696dfc92054a74c5 100644 (file)
@@ -2041,7 +2041,7 @@ static int viewdolly_exec(bContext *C, wmOperator *op)
                normalize_v3(mousevec);
        }
 
-       /* v3d= sa->spacedata.first; */ /* UNUSED */
+       /* v3d = sa->spacedata.first; */ /* UNUSED */
        rv3d = ar->regiondata;
 
        /* overwrite the mouse vector with the view direction (zoom into the center) */
index 37f682b4827c1e646596d4ba243db24e47d6855d..43626b058d645b67f4ee9f54724126e88481643b 100644 (file)
@@ -2359,7 +2359,7 @@ static void paint_facesel_circle_select(ViewContext *vc, int select, const int m
        if (me) {
                bm_vertoffs = me->totpoly + 1; /* max index array */
 
-               /* bbsel= */ /* UNUSED */ EDBM_backbuf_circle_init(vc, mval[0], mval[1], (short)(rad + 1.0f));
+               /* bbsel = */ /* UNUSED */ EDBM_backbuf_circle_init(vc, mval[0], mval[1], (short)(rad + 1.0f));
                edbm_backbuf_check_and_select_tfaces(me, select == LEFTMOUSE);
                EDBM_backbuf_free();
                paintface_flush_flags(ob);
@@ -2376,7 +2376,7 @@ static void paint_vertsel_circle_select(ViewContext *vc, int select, const int m
        if (me) {
                bm_vertoffs = me->totvert + 1; /* max index array */
 
-               /* bbsel= */ /* UNUSED */ EDBM_backbuf_circle_init(vc, mval[0], mval[1], (short)(rad + 1.0f));
+               /* bbsel = */ /* UNUSED */ EDBM_backbuf_circle_init(vc, mval[0], mval[1], (short)(rad + 1.0f));
                edbm_backbuf_check_and_select_verts_obmode(me, select == LEFTMOUSE);
                EDBM_backbuf_free();
 
index 9dd380036566d4edb9ff273587ba725c60150838..9517bc87721f2bb12851c14d2330e1b88cf0e650 100644 (file)
@@ -233,7 +233,7 @@ static void make_trans_verts(Object *obedit, float min[3], float max[3], int mod
                BMesh *bm = em->bm;
                BMIter iter;
                void *userdata[2] = {em, NULL};
-               /*int proptrans= 0; */ /*UNUSED*/
+               /*int proptrans = 0; */ /*UNUSED*/
                
                /* abuses vertex index all over, set, just set dirty here,
                 * perhaps this could use its own array instead? - campbell */
index f2a9d68750b3f796f9f917534f2bace9865a12a5..a626b71fdf8c31883d8290ae6cbc281c57374538 100644 (file)
@@ -1266,12 +1266,12 @@ static void RestoreState(bContext *C, wmWindow *win)
                GPU_paint_set_mipmap(0);
 
        //XXX curarea->win_swap = 0;
-       //XXX curarea->head_swap=0;
+       //XXX curarea->head_swap = 0;
        //XXX allqueue(REDRAWVIEW3D, 1);
        //XXX allqueue(REDRAWBUTSALL, 0);
        //XXX reset_slowparents();
        //XXX waitcursor(0);
-       //XXX G.qual= 0;
+       //XXX G.qual = 0;
        
        if (win) /* check because closing win can set to NULL */
                win->queue = queue_back;
@@ -1396,7 +1396,7 @@ static int game_engine_exec(bContext *C, wmOperator *op)
        WM_redraw_windows(C);
 
        rv3d = CTX_wm_region_view3d(C);
-       /* sa= CTX_wm_area(C); */ /* UNUSED */
+       /* sa = CTX_wm_area(C); */ /* UNUSED */
        ar = CTX_wm_region(C);
 
        view3d_operator_needs_opengl(C);
index 09cc13679b247f83af5f16fc77a388c51cd3443f..363a7f7f8add94dcd846d28dbc1033c715136d92 100644 (file)
@@ -469,11 +469,11 @@ static void viewRedrawForce(const bContext *C, TransInfo *t)
                
        }
        else if (t->spacetype == SPACE_ACTION) {
-               //SpaceAction *saction= (SpaceAction *)t->sa->spacedata.first;
+               //SpaceAction *saction = (SpaceAction *)t->sa->spacedata.first;
                WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL);
        }
        else if (t->spacetype == SPACE_IPO) {
-               //SpaceIpo *sipo= (SpaceIpo *)t->sa->spacedata.first;
+               //SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first;
                WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL);
        }
        else if (t->spacetype == SPACE_NLA) {
@@ -6591,5 +6591,5 @@ int TimeScale(TransInfo *t, const int UNUSED(mval[2]))
 void BIF_TransformSetUndo(const char *UNUSED(str))
 {
        // TRANSFORM_FIX_ME
-       //Trans.undostr= str;
+       //Trans.undostr = str;
 }
index d77cf5cadd4ed7a12cb04b469a9885e40e399d0b..6659472f16b08dc959d14002eed066d7902f9d2e 100644 (file)
@@ -3662,7 +3662,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t)
                                                bezt_to_transdata(td++, td2d++, adt, bezt, 0, 1, 1, intvals, mtx, smtx);
                                        }
                                        else {
-                                               /* h1= 0; */ /* UNUSED */
+                                               /* h1 = 0; */ /* UNUSED */
                                        }
                                        
                                        if (sel3) {
@@ -3671,7 +3671,7 @@ static void createTransGraphEditData(bContext *C, TransInfo *t)
                                                bezt_to_transdata(td++, td2d++, adt, bezt, 2, 1, 1, intvals, mtx, smtx);
                                        }
                                        else {
-                                               /* h2= 0; */ /* UNUSED */
+                                               /* h2 = 0; */ /* UNUSED */
                                        }
                                }
                                
@@ -4584,7 +4584,7 @@ static void ObjectToTransData(TransInfo *t, TransData *td, Object *ob)
                
                td->ext->irotAngle = ob->rotAngle;
                copy_v3_v3(td->ext->irotAxis, ob->rotAxis);
-               // td->ext->drotAngle= ob->drotAngle;                   // XXX, not implemented
+               // td->ext->drotAngle = ob->drotAngle;                  // XXX, not implemented
                // copy_v3_v3(td->ext->drotAxis, ob->drotAxis); // XXX, not implemented
        }
        else {
index 01586d1f4a0c933f54f46f91d0b5d447a30ed379..2e8c674d932a4611ef5d6bdb538a3b1065ef5e75 100644 (file)
@@ -1002,9 +1002,9 @@ int initTransInfo(bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
        
        /* moving: is shown in drawobject() (transform color) */
 //  TRANSFORM_FIX_ME
-//     if (obedit || (t->flag & T_POSE) ) G.moving= G_TRANSFORM_EDIT;
-//     else if (G.f & G_PARTICLEEDIT) G.moving= G_TRANSFORM_PARTICLE;
-//     else G.moving= G_TRANSFORM_OBJ;
+//     if (obedit || (t->flag & T_POSE) ) G.moving = G_TRANSFORM_EDIT;
+//     else if (G.f & G_PARTICLEEDIT) G.moving = G_TRANSFORM_PARTICLE;
+//     else G.moving = G_TRANSFORM_OBJ;
        
        t->scene = sce;
        t->sa = sa;
index d21465155e03ad22f42abaae7d35598d4561a701..0780b8f90b594876d57a861ef8901c2be693bb65 100644 (file)
@@ -441,7 +441,7 @@ int calc_manipulator_stats(const bContext *C)
                }
                else if (obedit->type == OB_MBALL) {
                        MetaBall *mb = (MetaBall *)obedit->data;
-                       MetaElem *ml /* , *ml_sel=NULL */ /* UNUSED */;
+                       MetaElem *ml /* , *ml_sel = NULL */ /* UNUSED */;
 
                        ml = mb->editelems->first;
                        while (ml) {
index fa43bf393195a32410d5d853a1534401d35f19d8..4c188414cf8acc3f214e84044d71df430e50d1b2 100644 (file)
@@ -564,7 +564,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
        if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
        else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
        RNA_def_property_float_sdna(prop, NULL, "rad_head");
-       /* XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid); */
+       /* XXX range is 0 to lim, where lim = 10000.0f * MAX2(1.0, view3d->grid); */
        /*RNA_def_property_range(prop, 0, 1000); */
        RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
        RNA_def_property_ui_text(prop, "Envelope Head Radius", "Radius of head of bone (for Envelope deform only)");
@@ -573,7 +573,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
        if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
        else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
        RNA_def_property_float_sdna(prop, NULL, "rad_tail");
-       /* XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid); */
+       /* XXX range is 0 to lim, where lim = 10000.0f * MAX2(1.0, view3d->grid); */
        /*RNA_def_property_range(prop, 0, 1000); */
        RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
        RNA_def_property_ui_text(prop, "Envelope Tail Radius", "Radius of tail of bone (for Envelope deform only)");
index 2a6ea2994fa7d02bf52e2d5716b76154387c01c0..8e45da50e9bf40b289aa2fe5baaa93c4219c9e4b 100644 (file)
@@ -436,7 +436,7 @@ static void rna_def_boidrule(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "On Land", "Use rule when boid is on land");
        RNA_def_property_update(prop, 0, "rna_Boids_reset");
        
-       /*prop= RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); */
+       /*prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); */
        /*RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Expanded); */
        /*RNA_def_property_ui_text(prop, "Expanded", "Set modifier expanded in the user interface"); */
 
index 5f1ce4f27736823ad1b04d9adf28df5e1100a204..b9e86e116a2e3b529d0b88338834159963b88d47 100644 (file)
@@ -419,41 +419,41 @@ static void rna_def_cloth_sim_settings(BlenderRNA *brna)
 
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "shear_stiffness", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "shear_stiffness", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "shear");
        RNA_def_property_range(prop, 0.0f, 1000.0f);
        RNA_def_property_ui_text(prop, "Shear Stiffness", "Shear spring stiffness");
 #endif
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "shear_stiffness_max", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "shear_stiffness_max", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "max_shear");
        RNA_def_property_range(prop, 0.0f, upperLimitf);
        RNA_def_property_ui_text(prop, "Shear Stiffness Maximum", "Maximum shear scaling value");
 #endif
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "effector_force_scale", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "effector_force_scale", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "eff_force_scale");
        RNA_def_property_range(prop, 0.0f, 100.0f);
        RNA_def_property_ui_text(prop, "Effector Force Scale", "");
 #endif
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "effector_wind_scale", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "effector_wind_scale", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "eff_wind_scale");
        RNA_def_property_range(prop, 0.0f, 100.0f);
        RNA_def_property_ui_text(prop, "Effector Wind Scale", "");
 #endif
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "tearing", PROP_BOOLEAN, PROP_NONE);
+       prop = RNA_def_property(srna, "tearing", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flags", CLOTH_SIMSETTINGS_FLAG_TEARING);
        RNA_def_property_ui_text(prop, "Tearing", "");
 #endif
        /* unused still */
 #if 0
-       prop= RNA_def_property(srna, "max_spring_extensions", PROP_INT, PROP_NONE);
+       prop = RNA_def_property(srna, "max_spring_extensions", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "maxspringlen");
        RNA_def_property_range(prop, 1.0, 1000.0);
        RNA_def_property_ui_text(prop, "Maximum Spring Extension", "Maximum extension before spring gets cut");
index aef1f765fe2e9aaa8ad5c849c6b0291e6ebc604e..c59e376da8263d00a3c40b2b6dbfe892fbbd2923 100644 (file)
@@ -240,7 +240,7 @@ void RNA_def_controller(BlenderRNA *brna)
        /* State */
        
        /* array of OB_MAX_STATES */
-       /*prop= RNA_def_property(srna, "states", PROP_BOOLEAN, PROP_LAYER_MEMBER); */
+       /*prop = RNA_def_property(srna, "states", PROP_BOOLEAN, PROP_LAYER_MEMBER); */
        /*RNA_def_property_array(prop, OB_MAX_STATES); */
        /*RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
        /*RNA_def_property_ui_text(prop, "", "Set Controller state index (1 to 30)"); */
index 53b04847b6b683df48c19955035d92325658bed0..354d7bae1ed3aab4f07b89d0958db351340233a1 100644 (file)
@@ -1109,7 +1109,7 @@ static void rna_def_charinfo(BlenderRNA *brna)
        
        /* probably there is no reason to expose this */
 #if 0
-       prop= RNA_def_property(srna, "wrap", PROP_BOOLEAN, PROP_NONE);
+       prop = RNA_def_property(srna, "wrap", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_CHINFO_WRAP);
        RNA_def_property_ui_text(prop, "Wrap", "");
        RNA_def_property_update(prop, 0, "rna_Curve_update_data"); */
@@ -1167,10 +1167,10 @@ static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_int(func, "count", 1, 0, INT_MAX, "Number", "Number of points to add to the spline", 0, INT_MAX);
 
 #if 0
-       func= RNA_def_function(srna, "remove", "rna_Curve_spline_remove");
+       func = RNA_def_function(srna, "remove", "rna_Curve_spline_remove");
        RNA_def_function_ui_description(func, "Remove a spline from a curve");
        RNA_def_function_flag(func, FUNC_USE_REPORTS);
-       parm= RNA_def_pointer(func, "spline", "Spline", "", "The spline to remove");
+       parm = RNA_def_pointer(func, "spline", "Spline", "", "The spline to remove");
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
 #endif
 }
index 8ad0cf963aa628abb81233c6a9d0be7e9c71c70c..ffeb221a847105a2e57fc47c4f1e4607ccb0b4a8 100644 (file)
@@ -900,7 +900,7 @@ void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
 
 PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
 {
-       /*StructRNA *srna= DefRNA.laststruct;*/ /* invalid for python defined props */
+       /*StructRNA *srna = DefRNA.laststruct;*/ /* invalid for python defined props */
        ContainerRNA *cont = cont_;
        ContainerDefRNA *dcont;
        PropertyDefRNA *dprop = NULL;
index daa661175a1c44f1da2fda768ac1ffcecea412a3..84ff53ee68fb14cd76c3958acf6de82ac0827f5d 100644 (file)
@@ -699,7 +699,7 @@ void RNA_def_fluidsim(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Type", "Type of participation in the fluid simulation");
        RNA_def_property_update(prop, 0, "rna_FluidSettings_update_type");
 
-       /*prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE); */
+       /*prop = RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE); */
        /*RNA_def_property_ui_text(prop, "IPO Curves", "IPO curves used by fluid simulation settings"); */
 
        /* types */
index 56150843273d4a3f2fbd705cb210209a29c3a5e0..d039ff84917b3e91705d2fd818a549c61f9ab92b 100644 (file)
@@ -150,7 +150,7 @@ static void rna_ImageUser_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *
 static char *rna_ImageUser_path(PointerRNA *ptr)
 {
        if (ptr->id.data) {
-               /* ImageUser *iuser= ptr->data; */
+               /* ImageUser *iuser = ptr->data; */
                
                switch (GS(((ID *)ptr->id.data)->name)) {
                        case ID_TE:
index 4152ccc1f9b0b129510def2229a8d3448db4c5a0..6c3270c8e99adf9c86572e130edf7ec938875651 100644 (file)
@@ -1826,7 +1826,7 @@ void RNA_def_material(BlenderRNA *brna)
                                 "from other scene lighting");
        RNA_def_property_update(prop, 0, "rna_Material_update");
 
-    prop= RNA_def_property(srna, "use_light_group_local", PROP_BOOLEAN, PROP_NONE);
+    prop = RNA_def_property(srna, "use_light_group_local", PROP_BOOLEAN, PROP_NONE);
     RNA_def_property_boolean_sdna(prop, NULL, "shade_flag", MA_GROUP_LOCAL);
     RNA_def_property_ui_text(prop, "Light Group Local", "When linked in, material uses local light group with the same name");
     RNA_def_property_update(prop, 0, "rna_Material_update");
index db309ed8f1f2df1a8f4540e62312578baf047822..7355e464fc3ef8c7b9b4dda33d3b306e262767f7 100644 (file)
@@ -829,7 +829,7 @@ static void rna_EnumProperty_items_begin(CollectionPropertyIterator *iter, Point
        int totitem, free = 0;
        
        rna_idproperty_check(&prop, ptr);
-       /* eprop= (EnumPropertyRNA *)prop; */
+       /* eprop = (EnumPropertyRNA *)prop; */
        
        RNA_property_enum_items(NULL, ptr, prop, &item, &totitem, &free);
        rna_iterator_array_begin(iter, (void *)item, sizeof(EnumPropertyItem), totitem, free, rna_enum_check_separator);
index 2e1c62cce53b4242eb05aabeebb18b15b1977c9c..2a8f1b90d4eb9a4d2c5597b6724ffb3fe6f53ebb 100644 (file)
@@ -236,41 +236,41 @@ void RNA_api_ui_layout(StructRNA *srna)
        /* useful in C but not in python */
 #if 0
 
-       func= RNA_def_function(srna, "operator_enum_single", "uiItemEnumO_string");
+       func = RNA_def_function(srna, "operator_enum_single", "uiItemEnumO_string");
        api_ui_item_op_common(func);
-       parm= RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
+       parm = RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       parm= RNA_def_string(func, "value", "", 0, "", "Enum property value");
+       parm = RNA_def_string(func, "value", "", 0, "", "Enum property value");
        RNA_def_property_flag(parm, PROP_REQUIRED);
 
-       func= RNA_def_function(srna, "operator_boolean", "uiItemBooleanO");
+       func = RNA_def_function(srna, "operator_boolean", "uiItemBooleanO");
        api_ui_item_op_common(func);
-       parm= RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
+       parm = RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       parm= RNA_def_boolean(func, "value", 0, "", "Value of the property to call the operator with");
+       parm = RNA_def_boolean(func, "value", 0, "", "Value of the property to call the operator with");
        RNA_def_property_flag(parm, PROP_REQUIRED); */
 
-       func= RNA_def_function(srna, "operator_int", "uiItemIntO");
+       func = RNA_def_function(srna, "operator_int", "uiItemIntO");
        api_ui_item_op_common(func);
-       parm= RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
+       parm = RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       parm= RNA_def_int(func, "value", 0, INT_MIN, INT_MAX, "",
+       parm = RNA_def_int(func, "value", 0, INT_MIN, INT_MAX, "",
                          "Value of the property to call the operator with", INT_MIN, INT_MAX);
        RNA_def_property_flag(parm, PROP_REQUIRED); */
 
-       func= RNA_def_function(srna, "operator_float", "uiItemFloatO");
+       func = RNA_def_function(srna, "operator_float", "uiItemFloatO");
        api_ui_item_op_common(func);
-       parm= RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
+       parm = RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       parm= RNA_def_float(func, "value", 0, -FLT_MAX, FLT_MAX, "",
+       parm = RNA_def_float(func, "value", 0, -FLT_MAX, FLT_MAX, "",
                            "Value of the property to call the operator with", -FLT_MAX, FLT_MAX);
        RNA_def_property_flag(parm, PROP_REQUIRED); */
 
-       func= RNA_def_function(srna, "operator_string", "uiItemStringO");
+       func = RNA_def_function(srna, "operator_string", "uiItemStringO");
        api_ui_item_op_common(func);
-       parm= RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
+       parm = RNA_def_string(func, "property", "", 0, "", "Identifier of property in operator");
        RNA_def_property_flag(parm, PROP_REQUIRED);
-       parm= RNA_def_string(func, "value", "", 0, "", "Value of the property to call the operator with");
+       parm = RNA_def_string(func, "value", "", 0, "", "Value of the property to call the operator with");
        RNA_def_property_flag(parm, PROP_REQUIRED);
 #endif
 
index c128f4ce7e5190af8c4ba24a91d1e1904078f145..f7d3238631e10ac896db4d5bf6c3998d1edcac30 100644 (file)
@@ -490,7 +490,7 @@ static void rna_def_userdef_theme_ui_style(BlenderRNA *brna)
        
        /* (not used yet) */
 #if 0
-       prop= RNA_def_property(srna, "panelzoom", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "panelzoom", PROP_FLOAT, PROP_NONE);
        RNA_def_property_range(prop, 0.5, 2.0);
        RNA_def_property_ui_text(prop, "Panel Zoom", "Default zoom level for panel areas");
 #endif
index 8bacd4c380b027a1ef063b2c164e410afab98963..3dffc422e13cb1332b5a96ced30a4eaa17dbbf04 100644 (file)
@@ -1425,7 +1425,7 @@ static void rna_def_operator_type_macro(BlenderRNA *brna)
        RNA_def_struct_ui_text(srna, "Operator Macro", "Storage of a sub operator in a macro after it has been added");
        RNA_def_struct_sdna(srna, "wmOperatorTypeMacro");
 
-/*     prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); */
+/*     prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); */
 /*     RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
 /*     RNA_def_property_string_sdna(prop, NULL, "idname"); */
 /*     RNA_def_property_ui_text(prop, "Name", "Name of the sub operator"); */
index bcbc21d5b6c8bfb21027085c34790a90d39141ee..0e4aa54b4c11c92c04ad81ae802af7ee01d7398b 100644 (file)
@@ -813,7 +813,7 @@ static DerivedMesh *explodeMesh(ExplodeModifierData *emd,
        sim.psys = psmd->psys;
        sim.psmd = psmd;
 
-       /* timestep= psys_get_timestep(&sim); */
+       /* timestep = psys_get_timestep(&sim); */
 
        cfra = BKE_scene_frame_get(scene);
 
@@ -861,7 +861,7 @@ static DerivedMesh *explodeMesh(ExplodeModifierData *emd,
        /* the final duplicated vertices */
        explode = CDDM_from_template(dm, totdup, 0, totface - delface, 0, 0);
        mtface = CustomData_get_layer_named(&explode->faceData, CD_MTFACE, emd->uvname);
-       /*dupvert= CDDM_get_verts(explode);*/
+       /*dupvert = CDDM_get_verts(explode);*/
 
        /* getting back to object space */
        invert_m4_m4(imat, ob->obmat);
index 9acac6d00cdbf40dd95369f42710cf7d72d30e36..4752328622917c6a907f000c931f3860066f4af0 100644 (file)
@@ -529,7 +529,7 @@ DerivedMesh *fluidsimModifier_do(FluidsimModifierData *fluidmd, Scene *scene,
        fss = fluidmd->fss;
 
        /* timescale not supported yet
-        * clmd->sim_parms->timescale= timescale; */
+        * clmd->sim_parms->timescale = timescale; */
 
        /* support reversing of baked fluid frames here */
        if ((fss->flag & OB_FLUIDSIM_REVERSE) && (fss->lastgoodframe >= 0)) {
index 49da4ec22a0486887949f8a3bd9b98d9ad1952d6..93b5e36e5a43c120b32b79fc148e81197d6907e4 100644 (file)
@@ -363,7 +363,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
                 */
 
                vert_connect = MEM_mallocN(sizeof(ScrewVertConnect) * totvert, "ScrewVertConnect");
-               //vert_connect= (ScrewVertConnect *) &medge_new[totvert]; /* skip the first slice of verts */
+               //vert_connect = (ScrewVertConnect *) &medge_new[totvert];  /* skip the first slice of verts */
                vc = vert_connect;
 
                /* Copy Vert Locations */
@@ -732,7 +732,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
                        copy_v3_v3(mv_new->co, mv_new_base->co);
                        
                        /* only need to set these if using non cleared memory */
-                       /*mv_new->mat_nr= mv_new->flag= 0;*/
+                       /*mv_new->mat_nr = mv_new->flag = 0;*/
                                
                        if (ltmd->ob_axis) {
                                sub_v3_v3(mv_new->co, mtx_tx[3]);
index 342c366fb48738f4b923b55bf1c465d82019d63c..09e6ddd18a51bab13429c10ce93cc98bdd53d4ad 100644 (file)
@@ -65,12 +65,12 @@ void node_free_standard_storage(bNode *node)
 
 void node_copy_curves(bNode *orig_node, bNode *new_node)
 {
-       new_node->storage= curvemapping_copy(orig_node->storage);
+       new_node->storage = curvemapping_copy(orig_node->storage);
 }
 
 void node_copy_standard_storage(bNode *orig_node, bNode *new_node)
 {
-       new_node->storage= MEM_dupallocN(orig_node->storage);
+       new_node->storage = MEM_dupallocN(orig_node->storage);
 }
 
 void *node_initexec_curves(bNode *node)
index 70815d9f8bf2ec97b683e377cbac97dfa51eff8e..51f9e8972644611f381f088f647cfae8235dd25f 100644 (file)
@@ -664,7 +664,8 @@ PyObject *pyrna_py_from_array_index(BPy_PropertyArrayRNA *self, PointerRNA *ptr,
        len = RNA_property_multi_array_length(ptr, prop, arraydim);
        if (index >= len || index < 0) {
                /* this shouldn't happen because higher level funcs must check for invalid index */
-               if (G.debug & G_DEBUG_PYTHON) printf("pyrna_py_from_array_index: invalid index %d for array with length=%d\n", index, len);
+               if (G.debug & G_DEBUG_PYTHON)
+                       printf("%s: invalid index %d for array with length=%d\n", __func__, index, len);
 
                PyErr_SetString(PyExc_IndexError, "out of range");
                return NULL;
index cfc43d3c548bc5ce2e25691295f49b44ed4e03b5..bf37faa07ffd84b7ccca0aecfaf557947692b72e 100644 (file)
@@ -143,7 +143,7 @@ QuicktimeCodecTypeDesc* quicktime_get_videocodecType_desc(int indexValue)
 int quicktime_rnatmpvalue_from_videocodectype(int codecType)
 {
        int i;
-       for (i=0;i<qtVideoCodecCount;i++) {
+       for (i = 0; i < qtVideoCodecCount; i++) {
                if (qtVideoCodecList[i].codecType == codecType)
                        return qtVideoCodecList[i].rnatmpvalue;
        }
@@ -154,7 +154,7 @@ int quicktime_rnatmpvalue_from_videocodectype(int codecType)
 int quicktime_videocodecType_from_rnatmpvalue(int rnatmpvalue)
 {
        int i;
-       for (i=0;i<qtVideoCodecCount;i++) {
+       for (i = 0; i < qtVideoCodecCount; i++) {
                if (qtVideoCodecList[i].rnatmpvalue == rnatmpvalue)
                        return qtVideoCodecList[i].codecType;
        }
@@ -188,7 +188,7 @@ QuicktimeCodecTypeDesc* quicktime_get_audiocodecType_desc(int indexValue)
 int quicktime_rnatmpvalue_from_audiocodectype(int codecType)
 {
        int i;
-       for (i=0;i<qtAudioCodecCount;i++) {
+       for (i = 0; i < qtAudioCodecCount; i++) {
                if (qtAudioCodecList[i].codecType == codecType)
                        return qtAudioCodecList[i].rnatmpvalue;
        }
@@ -199,7 +199,7 @@ int quicktime_rnatmpvalue_from_audiocodectype(int codecType)
 int quicktime_audiocodecType_from_rnatmpvalue(int rnatmpvalue)
 {
        int i;
-       for (i=0;i<qtAudioCodecCount;i++) {
+       for (i = 0; i < qtAudioCodecCount; i++) {
                if (qtAudioCodecList[i].rnatmpvalue == rnatmpvalue)
                        return qtAudioCodecList[i].codecType;
        }
@@ -235,7 +235,7 @@ void makeqtstring (RenderData *rd, char *string)
 
 void filepath_qt(char *string, RenderData *rd)
 {
-       if (string==NULL) return;
+       if (string == NULL) return;
        
        strcpy(string, rd->pic);
        BLI_path_abs(string, G.main->name);
@@ -313,8 +313,8 @@ int start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty, R
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        NSError *error;
        char name[1024];
-       int success= 1;
-       OSStatus err=noErr;
+       int success = 1;
+       OSStatus err = noErr;
 
        if(qtexport == NULL) qtexport = MEM_callocN(sizeof(QuicktimeExport), "QuicktimeExport");
        
@@ -323,7 +323,7 @@ int start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty, R
        /* Check first if the QuickTime 7.2.1 initToWritableFile: method is available */
        if ([[[[QTMovie alloc] init] autorelease] respondsToSelector:@selector(initToWritableFile:error:)] != YES) {
                BKE_report(reports, RPT_ERROR, "\nUnable to create quicktime movie, need Quicktime rev 7.2.1 or later");
-               success= 0;
+               success = 0;
        }
        else {
                makeqtstring(rd, name);
@@ -543,7 +543,7 @@ int start_qt(struct Scene *scene, struct RenderData *rd, int rectx, int recty, R
 
                if(qtexport->movie == nil) {
                        BKE_report(reports, RPT_ERROR, "Unable to create quicktime movie.");
-                       success= 0;
+                       success = 0;
                        if (qtexport->filename) [qtexport->filename release];
                        qtexport->filename = nil;
                        if (qtexport->audioFileName) [qtexport->audioFileName release];
index e420eb1efa792c46232bccbec6016e0f64b9066c..d7c8889b44ae49d255c906105c9a8a22123ade71 100644 (file)
@@ -147,7 +147,7 @@ static ImBuf * nsImageToiBuf(NSImage *sourceImage, int width, int height)
        uchar *toIBuf = NULL;
        int x, y, to_i, from_i;
        NSSize bitmapSize;
-       NSBitmapImageRep *blBitmapFormatImageRGB,*blBitmapFormatImageRGBA,*bitmapImage=nil;
+       NSBitmapImageRep *blBitmapFormatImageRGB,*blBitmapFormatImageRGBA, *bitmapImage = nil;
        NSEnumerator *enumerator;
        NSImageRep *representation;