diff options
author | Jacques Lucke <jacques@blender.org> | 2022-02-21 18:07:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-02-21 18:07:59 +0300 |
commit | ed9f7630342f4d515b6d77aa1f77722b74676518 (patch) | |
tree | ae3616b741a75ce9bbb5fdcbf6fad592da1007b6 /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 68586d2c183bb36464d8de4c50b1c23c47631a83 (diff) |
Paint: pass operator to stroke update function
This allows accessing properties of the operator that the
stroke belongs to.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index f7447ec31b8..ba363f687dc 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -49,6 +49,7 @@ typedef struct CoNo { typedef bool (*StrokeGetLocation)(struct bContext *C, float location[3], const float mouse[2]); typedef bool (*StrokeTestStart)(struct bContext *C, struct wmOperator *op, const float mouse[2]); typedef void (*StrokeUpdateStep)(struct bContext *C, + struct wmOperator *op, struct PaintStroke *stroke, struct PointerRNA *itemptr); typedef void (*StrokeRedraw)(const struct bContext *C, struct PaintStroke *stroke, bool final); |