Code Cleanup: style comments

This commit is contained in:
Campbell Barton 2013-11-25 11:00:55 +11:00
parent d305df2226
commit 9c262e5649
2 changed files with 4 additions and 3 deletions

View File

@ -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) {

View File

@ -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));
}
}