diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-25 15:25:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-25 15:25:10 +0400 |
commit | e771e07fe8e876d91922bb3f2c2f04c415ed1a06 (patch) | |
tree | 7ad62b199932428641e4a64a556b9abd58597394 /source/blender/editors/sculpt_paint | |
parent | a54fc5a99db04afcbbfd661f5fafa1f0fa4c4632 (diff) |
image space now has a mode for view/paint/mask editing.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 073e60ca87c..aa239af43f7 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -4667,8 +4667,9 @@ static int image_paint_poll(bContext *C) if (sima) { ARegion *ar = CTX_wm_region(C); - if ((sima->flag & SI_DRAWTOOL) && ar->regiontype == RGN_TYPE_WINDOW) + if ((sima->mode == SI_MODE_PAINT) && ar->regiontype == RGN_TYPE_WINDOW) { return 1; + } } } |