diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-18 18:17:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-18 18:19:44 +0300 |
commit | 4439e5d0ba3ffde3841ec44405a9bcaf800be279 (patch) | |
tree | d0955d8e18d854603da54bed39c46ef9627c4736 /source/blender/editors/screen | |
parent | 098f75897e3ddf4bb93f64cecb322d7370127419 (diff) |
Cleanup: add trailing commas to avoid right shift
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 42 | ||||
-rw-r--r-- | source/blender/editors/screen/screen_context.c | 96 |
2 files changed, 71 insertions, 67 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index b4ea97d6e04..1aa54bcd8b5 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -776,26 +776,28 @@ static void area_azone_initialize(wmWindow *win, const bScreen *screen, ScrArea return; } - float coords[4][4] = {/* Bottom-left. */ - {sa->totrct.xmin - U.pixelsize, - sa->totrct.ymin - U.pixelsize, - sa->totrct.xmin + AZONESPOTW, - sa->totrct.ymin + AZONESPOTH}, - /* Bottom-right. */ - {sa->totrct.xmax - AZONESPOTW, - sa->totrct.ymin - U.pixelsize, - sa->totrct.xmax + U.pixelsize, - sa->totrct.ymin + AZONESPOTH}, - /* Top-left. */ - {sa->totrct.xmin - U.pixelsize, - sa->totrct.ymax - AZONESPOTH, - sa->totrct.xmin + AZONESPOTW, - sa->totrct.ymax + U.pixelsize}, - /* Top-right. */ - {sa->totrct.xmax - AZONESPOTW, - sa->totrct.ymax - AZONESPOTH, - sa->totrct.xmax + U.pixelsize, - sa->totrct.ymax + U.pixelsize}}; + float coords[4][4] = { + /* Bottom-left. */ + {sa->totrct.xmin - U.pixelsize, + sa->totrct.ymin - U.pixelsize, + sa->totrct.xmin + AZONESPOTW, + sa->totrct.ymin + AZONESPOTH}, + /* Bottom-right. */ + {sa->totrct.xmax - AZONESPOTW, + sa->totrct.ymin - U.pixelsize, + sa->totrct.xmax + U.pixelsize, + sa->totrct.ymin + AZONESPOTH}, + /* Top-left. */ + {sa->totrct.xmin - U.pixelsize, + sa->totrct.ymax - AZONESPOTH, + sa->totrct.xmin + AZONESPOTW, + sa->totrct.ymax + U.pixelsize}, + /* Top-right. */ + {sa->totrct.xmax - AZONESPOTW, + sa->totrct.ymax - AZONESPOTH, + sa->totrct.xmax + U.pixelsize, + sa->totrct.ymax + U.pixelsize}, + }; for (int i = 0; i < 4; i++) { /* can't click on bottom corners on OS X, already used for resizing */ diff --git a/source/blender/editors/screen/screen_context.c b/source/blender/editors/screen/screen_context.c index 719403531ff..d26907cdd3f 100644 --- a/source/blender/editors/screen/screen_context.c +++ b/source/blender/editors/screen/screen_context.c @@ -65,53 +65,55 @@ #include "screen_intern.h" -const char *screen_context_dir[] = {"scene", - "view_layer", - "visible_objects", - "visible_bases", - "selectable_objects", - "selectable_bases", - "selected_objects", - "selected_bases", - "editable_objects", - "editable_bases", - "selected_editable_objects", - "selected_editable_bases", - "objects_in_mode", - "objects_in_mode_unique_data", - "visible_bones", - "editable_bones", - "selected_bones", - "selected_editable_bones", - "visible_pose_bones", - "selected_pose_bones", - "selected_pose_bones_from_active_object", - "active_bone", - "active_pose_bone", - "active_base", - "active_object", - "object", - "edit_object", - "sculpt_object", - "vertex_paint_object", - "weight_paint_object", - "image_paint_object", - "particle_edit_object", - "uv_sculpt_object", - "pose_object", - "sequences", - "selected_sequences", - "selected_editable_sequences", /* sequencer */ - "gpencil_data", - "gpencil_data_owner", /* grease pencil data */ - "visible_gpencil_layers", - "editable_gpencil_layers", - "editable_gpencil_strokes", - "active_gpencil_layer", - "active_gpencil_frame", - "active_operator", - "selected_editable_fcurves", - NULL}; +const char *screen_context_dir[] = { + "scene", + "view_layer", + "visible_objects", + "visible_bases", + "selectable_objects", + "selectable_bases", + "selected_objects", + "selected_bases", + "editable_objects", + "editable_bases", + "selected_editable_objects", + "selected_editable_bases", + "objects_in_mode", + "objects_in_mode_unique_data", + "visible_bones", + "editable_bones", + "selected_bones", + "selected_editable_bones", + "visible_pose_bones", + "selected_pose_bones", + "selected_pose_bones_from_active_object", + "active_bone", + "active_pose_bone", + "active_base", + "active_object", + "object", + "edit_object", + "sculpt_object", + "vertex_paint_object", + "weight_paint_object", + "image_paint_object", + "particle_edit_object", + "uv_sculpt_object", + "pose_object", + "sequences", + "selected_sequences", + "selected_editable_sequences", /* sequencer */ + "gpencil_data", + "gpencil_data_owner", /* grease pencil data */ + "visible_gpencil_layers", + "editable_gpencil_layers", + "editable_gpencil_strokes", + "active_gpencil_layer", + "active_gpencil_frame", + "active_operator", + "selected_editable_fcurves", + NULL, +}; int ed_screen_context(const bContext *C, const char *member, bContextDataResult *result) { |