[Bf-blender-cvs] [b492f85] master: Fix part of T37326: IMAGE_OT_invert won't update if buffer is float

Sergey Sharybin noreply at git.blender.org
Mon Nov 18 09:18:45 CET 2013


Commit: b492f85c52344aba2b779f7553638f0e6d933d38
Author: Sergey Sharybin
Date:   Mon Nov 18 14:18:01 2013 +0600
http://developer.blender.org/rBb492f85c52344aba2b779f7553638f0e6d933d38

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

Need to mark display buffer as out-of-date.

===================================================================

M	source/blender/editors/space_image/image_ops.c

===================================================================

diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index ebcc8c2..b7d3407 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -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;




More information about the Bf-blender-cvs mailing list