diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-09 13:33:17 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-09 13:33:33 +0300 |
commit | 4da282a1615d23ffcdfdc43998dce5091455078b (patch) | |
tree | fb15d4e0c305af3e56f9392f5fc65de78bc76e89 /source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | |
parent | 010ea688f1b93bdd8b0fc3f68d37c541eb7b96ae (diff) |
Curves: rename initial brushes
The brushes that are still called "Test" still need to be changed
until they can get their correct name.
Ref T96259.
Diffstat (limited to 'source/blender/editors/sculpt_paint/curves_sculpt_ops.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index 4dee7641623..1411f30bffd 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -273,7 +273,7 @@ class CombOperation : public CurvesSculptStrokeOperation { /** * Drags the tip point of each curve and resamples the rest of the curve. */ -class GrowOperation : public CurvesSculptStrokeOperation { +class SnakeHookOperation : public CurvesSculptStrokeOperation { private: float2 last_mouse_position_; @@ -936,15 +936,15 @@ static std::unique_ptr<CurvesSculptStrokeOperation> start_brush_operation(bConte CurvesSculpt &curves_sculpt = *scene.toolsettings->curves_sculpt; Brush &brush = *BKE_paint_brush(&curves_sculpt.paint); switch (brush.curves_sculpt_tool) { - case CURVES_SCULPT_TOOL_TEST1: + case CURVES_SCULPT_TOOL_COMB: return std::make_unique<CombOperation>(); - case CURVES_SCULPT_TOOL_TEST2: + case CURVES_SCULPT_TOOL_DELETE: return std::make_unique<DeleteOperation>(); - case CURVES_SCULPT_TOOL_TEST3: + case CURVES_SCULPT_TOOL_SNAKE_HOOK: + return std::make_unique<SnakeHookOperation>(); + case CURVES_SCULPT_TOOL_TEST1: return std::make_unique<AddOperation>(); - case CURVES_SCULPT_TOOL_TEST4: - return std::make_unique<GrowOperation>(); - case CURVES_SCULPT_TOOL_TEST5: + case CURVES_SCULPT_TOOL_TEST2: return std::make_unique<ShrinkOperation>(); } BLI_assert_unreachable(); |