[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57920] branches/soc-2013-paint/source/ blender/editors/sculpt_paint/paint_image.c: Add missing notification event for colour flipping

Antony Riakiotakis kalast at gmail.com
Tue Jul 2 03:01:58 CEST 2013


Revision: 57920
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57920
Author:   psy-fi
Date:     2013-07-02 01:01:55 +0000 (Tue, 02 Jul 2013)
Log Message:
-----------
Add missing notification event for colour flipping

Modified Paths:
--------------
    branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_image.c

Modified: branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_image.c	2013-07-01 23:17:24 UTC (rev 57919)
+++ branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_image.c	2013-07-02 01:01:55 UTC (rev 57920)
@@ -978,7 +978,7 @@
 	paint_sample_color(C, ar, location[0], location[1], foreground);
 
 	WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, brush);
-	
+
 	return OPERATOR_FINISHED;
 }
 
@@ -1129,6 +1129,8 @@
 	Brush *br = image_paint_brush(C);
 	swap_v3_v3(br->rgb, br->secondary_rgb);
 
+	WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, br);
+
 	return OPERATOR_FINISHED;
 }
 




More information about the Bf-blender-cvs mailing list