From 9c262e5649303eff26e7645079185c250e4420ff Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 25 Nov 2013 11:00:55 +1100 Subject: Code Cleanup: style comments --- source/blender/editors/interface/interface_handlers.c | 3 ++- source/blender/editors/space_image/image_ops.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index cdc692373c8..03dcf849b7e 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -3534,7 +3534,8 @@ static int ui_do_but_LISTROW(bContext *C, uiBut *but, uiHandleButtonData *data, /* hack to pass on ctrl+click and double click to overlapping text * editing field for editing list item names */ if ((ELEM3(event->type, LEFTMOUSE, PADENTER, RETKEY) && event->val == KM_PRESS && event->ctrl) || - (event->type == LEFTMOUSE && event->val == KM_DBL_CLICK)) { + (event->type == LEFTMOUSE && event->val == KM_DBL_CLICK)) + { uiBut *labelbut = ui_but_find_mouse_over_ex(ar, event->x, event->y, true); if (labelbut && labelbut->type == TEX) { diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 58d835b0d2f..401c0a4b6a4 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -1793,8 +1793,8 @@ static int image_new_exec(bContext *C, wmOperator *op) Tex *tex = CTX_data_pointer_get_type(C, "texture", &RNA_Texture).data; if (tex && tex->type == TEX_IMAGE) { if (tex->ima) - tex->ima->id.us--; /* Decrease the previous image users count by 1 */ - tex->ima = ima; /* Assign the new image */ + tex->ima->id.us--; + tex->ima = ima; ED_area_tag_redraw(CTX_wm_area(C)); } } -- cgit v1.2.3