style cleanup: follow style guide for formatting of if/for/while loops, and else...
[blender.git] / source / blender / editors / space_nla / nla_channels.c
index 8775d256b800cadd3654758921b511893cffdf7d..c242a1c1323d33c64881b863f935084224f1adf0 100644 (file)
@@ -344,16 +344,16 @@ static int nlachannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *e
 void NLA_OT_channels_click (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mouse Click on NLA Channels";
-       ot->idname= "NLA_OT_channels_click";
-       ot->description= "Handle clicks to select NLA channels";
+       ot->name = "Mouse Click on NLA Channels";
+       ot->idname = "NLA_OT_channels_click";
+       ot->description = "Handle clicks to select NLA channels";
        
        /* api callbacks */
-       ot->invoke= nlachannels_mouseclick_invoke;
-       ot->poll= ED_operator_nla_active;
+       ot->invoke = nlachannels_mouseclick_invoke;
+       ot->poll = ED_operator_nla_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* id-props */
        RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY
@@ -418,19 +418,19 @@ static int nlaedit_add_tracks_exec (bContext *C, wmOperator *op)
 void NLA_OT_tracks_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Track(s)";
-       ot->idname= "NLA_OT_tracks_add";
-       ot->description= "Add NLA-Tracks above/after the selected tracks";
+       ot->name = "Add Track(s)";
+       ot->idname = "NLA_OT_tracks_add";
+       ot->description = "Add NLA-Tracks above/after the selected tracks";
        
        /* api callbacks */
-       ot->exec= nlaedit_add_tracks_exec;
-       ot->poll= nlaop_poll_tweakmode_off;
+       ot->exec = nlaedit_add_tracks_exec;
+       ot->poll = nlaop_poll_tweakmode_off;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       RNA_def_boolean(ot->srna, "above_selected", 0, "Above Selected", "Add a new NLA Track above every existing selected one.");
+       RNA_def_boolean(ot->srna, "above_selected", 0, "Above Selected", "Add a new NLA Track above every existing selected one");
 }
 
 /* ******************** Delete Tracks Operator ***************************** */
@@ -454,7 +454,7 @@ static int nlaedit_delete_tracks_exec (bContext *C, wmOperator *UNUSED(op))
        
        /* delete tracks */
        for (ale= anim_data.first; ale; ale= ale->next) {
-               if(ale->type == ANIMTYPE_NLATRACK) {
+               if (ale->type == ANIMTYPE_NLATRACK) {
                        NlaTrack *nlt= (NlaTrack *)ale->data;
                        AnimData *adt= ale->adt;
                        
@@ -482,16 +482,16 @@ static int nlaedit_delete_tracks_exec (bContext *C, wmOperator *UNUSED(op))
 void NLA_OT_delete_tracks (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Tracks";
-       ot->idname= "NLA_OT_delete_tracks";
-       ot->description= "Delete selected NLA-Tracks and the strips they contain";
+       ot->name = "Delete Tracks";
+       ot->idname = "NLA_OT_delete_tracks";
+       ot->description = "Delete selected NLA-Tracks and the strips they contain";
        
        /* api callbacks */
-       ot->exec= nlaedit_delete_tracks_exec;
-       ot->poll= nlaop_poll_tweakmode_off;
+       ot->exec = nlaedit_delete_tracks_exec;
+       ot->poll = nlaop_poll_tweakmode_off;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* *********************************************** */