diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-09-21 01:47:10 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-09-21 01:47:10 +0400 |
commit | 6e56db8ce26ce107a4123e21ba222fb897ba340c (patch) | |
tree | fceaa8c5ca28e7e9c759768de3e32e795358ec75 /source | |
parent | 31da72545ed014e7f91dc945e693d5d7e65a3bf2 (diff) |
Paint system
* Add unified color settings to brush menus.
* Add notifier on fill tool from drag and drop to refresh icons
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 7c19528a049..f83dd3d7e82 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -1482,12 +1482,17 @@ void PAINT_OT_brush_colors_flip(wmOperatorType *ot) void ED_imapaint_bucket_fill(struct bContext *C, float color[3], wmOperator *op) { + SpaceImage *sima = CTX_wm_space_image(C); + Image *ima = sima->image; + ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name, ED_image_undo_restore, ED_image_undo_free, NULL); paint_2d_bucket_fill(C, color, NULL, NULL, NULL); ED_undo_paint_push_end(UNDO_PAINT_IMAGE); + + DAG_id_tag_update(&ima->id, 0); } |