diff options
author | Bastien Montagne <bastien@blender.org> | 2021-01-06 20:06:11 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-06 20:07:09 +0300 |
commit | 3028de9527a0a7e2772fd87fcf1abbf823698371 (patch) | |
tree | ee0498f7c5109dfde30246675009984392f2ec33 /source/blender/editors/sculpt_paint | |
parent | 5cdf279ef46fa8672d086d1f57025e31f477accc (diff) |
UndoType: Refactor: replace `use_context` boolean by a bitflag.
We will soon need more options here, sinmpler and cleaner to use a
bitflag then.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_curve_undo.c | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve_undo.c b/source/blender/editors/sculpt_paint/paint_curve_undo.c index c78af7c38c6..0ffb392f826 100644 --- a/source/blender/editors/sculpt_paint/paint_curve_undo.c +++ b/source/blender/editors/sculpt_paint/paint_curve_undo.c @@ -159,7 +159,7 @@ void ED_paintcurve_undosys_type(UndoType *ut) ut->step_foreach_ID_ref = paintcurve_undosys_foreach_ID_ref; - ut->use_context_for_encode = false; + ut->flags = 0; ut->step_size = sizeof(PaintCurveUndoStep); } diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 9f2a6e305d0..443aee81696 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -1576,7 +1576,7 @@ void ED_sculpt_undosys_type(UndoType *ut) ut->step_decode = sculpt_undosys_step_decode; ut->step_free = sculpt_undosys_step_free; - ut->use_context_for_encode = false; + ut->flags = 0; ut->step_size = sizeof(SculptUndoStep); } |