diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-07 07:24:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-07 07:24:22 +0400 |
commit | 6747dec926ded010641cef37bd4384fff15dc961 (patch) | |
tree | cb8fc2771e289495486cb9cb55c11f612fa5ec0b /source/blender/editors/space_view3d/view3d_draw.c | |
parent | 85b59bd89e3f220f8921d7a227f17534bb428145 (diff) |
style cleanup
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index d66236d1c51..202b5befa01 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -937,7 +937,7 @@ static void draw_selected_name(Scene *scene, Object *ob, rcti *rect) } /* color depends on whether there is a keyframe */ - if (id_frame_has_keyframe((ID *)ob, /*BKE_scene_frame_get(scene)*/ (float)(CFRA), ANIMFILTER_KEYS_LOCAL)) + if (id_frame_has_keyframe((ID *)ob, /* BKE_scene_frame_get(scene) */ (float)(CFRA), ANIMFILTER_KEYS_LOCAL)) UI_ThemeColor(TH_VERTEX_SELECT); else UI_ThemeColor(TH_TEXT_HI); @@ -3036,10 +3036,10 @@ static void view3d_main_area_draw_objects(const bContext *C, ARegion *ar, const for (x = 0; x < XTOT - 1; x++) { for (y = 0; y < YTOT - 1; y++) { - indices[x][y][0] = x*XTOT + y; - indices[x][y][1] = x*XTOT + y + 1; - indices[x][y][2] = (x + 1)*XTOT + y + 1; - indices[x][y][3] = (x + 1)*XTOT + y; + indices[x][y][0] = x * XTOT + y; + indices[x][y][1] = x * XTOT + y + 1; + indices[x][y][2] = (x + 1) * XTOT + y + 1; + indices[x][y][3] = (x + 1) * XTOT + y; } } @@ -3089,7 +3089,7 @@ static void view3d_main_area_draw_objects(const bContext *C, ARegion *ar, const glVertexPointer(2, GL_FLOAT, 0, grid_pos); glColorPointer(4, GL_UNSIGNED_BYTE, 0, grid_col); - glDrawElements(GL_QUADS, (XTOT - 1)*(YTOT - 1)*4, GL_UNSIGNED_SHORT, indices); + glDrawElements(GL_QUADS, (XTOT - 1) * (YTOT - 1) * 4, GL_UNSIGNED_SHORT, indices); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_COLOR_ARRAY); |