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/curves_sculpt_ops.cc | |
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/curves_sculpt_ops.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index fb5b1d338a6..db81adbbbcd 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -52,9 +52,12 @@ static bool stroke_test_start(bContext *C, struct wmOperator *op, const float mo return true; } -static void stroke_update_step(bContext *C, PaintStroke *stroke, PointerRNA *itemptr) +static void stroke_update_step(bContext *C, + wmOperator *op, + PaintStroke *stroke, + PointerRNA *itemptr) { - UNUSED_VARS(C, stroke, itemptr); + UNUSED_VARS(C, op, stroke, itemptr); } static void stroke_done(const bContext *C, PaintStroke *stroke) |