Fix part of T37326: IMAGE_OT_invert won't update if buffer is float

Need to mark display buffer as out-of-date.
This commit is contained in:
Sergey Sharybin 2013-11-18 14:18:01 +06:00
parent 8948d53d98
commit b492f85c52

@ -1900,7 +1900,7 @@ static int image_invert_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
ibuf->userflags |= IB_BITMAPDIRTY;
ibuf->userflags |= IB_BITMAPDIRTY | IB_DISPLAY_BUFFER_INVALID;
if (ibuf->mipmap[0])
ibuf->userflags |= IB_MIPMAP_INVALID;