From 0354d2e02cc9b5f63de4441b53d03e1daa4ee49e Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Fri, 27 Jun 2025 14:00:51 -0700 Subject: [PATCH] Cleanup: Fix warnings Introduced in b4725708751f12089b524e475eaf91542b4903e2 --- source/blender/editors/sculpt_paint/grease_pencil_paint.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/blender/editors/sculpt_paint/grease_pencil_paint.cc b/source/blender/editors/sculpt_paint/grease_pencil_paint.cc index 1a07b7506ef..1d10e7f84e2 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_paint.cc +++ b/source/blender/editors/sculpt_paint/grease_pencil_paint.cc @@ -349,8 +349,6 @@ struct PaintOperationExecutor { const float start_rotation = ed::greasepencil::randomize_rotation( *settings_, self.rng_, self.stroke_random_rotation_factor_, start_sample.pressure); Scene *scene = CTX_data_scene(&C); - Paint *paint = BKE_paint_get_active_from_context(&C); - Brush *brush = BKE_paint_brush(paint); if (use_vertex_color_) { vertex_color_ = ed::greasepencil::randomize_color(*settings_, jitter_settings_, @@ -646,8 +644,6 @@ struct PaintOperationExecutor { const InputSample &extension_sample) { Scene *scene = CTX_data_scene(&C); - Paint *paint = BKE_paint_get_active_from_context(&C); - Brush *brush = BKE_paint_brush(paint); const RegionView3D *rv3d = CTX_wm_region_view3d(&C); const ARegion *region = CTX_wm_region(&C); const bool on_back = (scene->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK) != 0;