diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-01 12:42:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-01 12:42:25 +0300 |
commit | 70d352d994d0f8187ad2c871ee22712b1bf4b855 (patch) | |
tree | 85b0e430b9eeae5fb6c6ded78f54da236108652d /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 2c9670b92d32e79d0f071475731bcaf79aae42f5 (diff) |
Tool System: add paint poll which ignores the tool
Needed for tools which ensure paint context but aren't brushes
(color sample & gradient).
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index ca82ca52463..a6d8a90e95a 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -94,8 +94,10 @@ void paint_cursor_delete_textures(void); /* paint_vertex.c */ int weight_paint_poll(struct bContext *C); +int weight_paint_poll_ignore_tool(bContext *C); int weight_paint_mode_poll(struct bContext *C); int vertex_paint_poll(struct bContext *C); +int vertex_paint_poll_ignore_tool(struct bContext *C); int vertex_paint_mode_poll(struct bContext *C); typedef void (*VPaintTransform_Callback)(const float col[3], const void *user_data, float r_col[3]); |