From 2798800d6a072cf717424516238946e2288bf4a0 Mon Sep 17 00:00:00 2001 From: Cody Winchester Date: Fri, 17 Oct 2025 17:06:42 -0500 Subject: [PATCH] GOOENGINE: Fix gp sculpt warning --- .../editors/sculpt_paint/grease_pencil_sculpt_smooth.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/sculpt_paint/grease_pencil_sculpt_smooth.cc b/source/blender/editors/sculpt_paint/grease_pencil_sculpt_smooth.cc index 906b8d6c7bf..3916ba83695 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_sculpt_smooth.cc +++ b/source/blender/editors/sculpt_paint/grease_pencil_sculpt_smooth.cc @@ -102,7 +102,7 @@ void SmoothOperation::on_stroke_extended(const bContext &C, const InputSample &e const VArray selection_varray = VArray::ForSpan(selection_array); bool changed = false; - if ((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_POSITION & context_type_ == 0) || context_type_ == 1) { + if (((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_POSITION) & context_type_ == 0) || context_type_ == 1) { MutableSpan positions = curves.positions_for_write(); geometry::smooth_curve_attribute(curves.curves_range(), points_by_curve, @@ -116,7 +116,7 @@ void SmoothOperation::on_stroke_extended(const bContext &C, const InputSample &e params.drawing.tag_positions_changed(); changed = true; } - if ((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_STRENGTH & context_type_ == 0) || context_type_ == 2) { + if (((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_STRENGTH) & context_type_ == 0) || context_type_ == 2) { MutableSpan opacities = params.drawing.opacities_for_write(); geometry::smooth_curve_attribute(curves.curves_range(), points_by_curve, @@ -129,7 +129,7 @@ void SmoothOperation::on_stroke_extended(const bContext &C, const InputSample &e opacities); changed = true; } - if ((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_THICKNESS & context_type_ == 0) || context_type_ == 3) { + if (((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_THICKNESS) & context_type_ == 0) || context_type_ == 3) { const MutableSpan radii = params.drawing.radii_for_write(); geometry::smooth_curve_attribute(curves.curves_range(), points_by_curve, @@ -143,7 +143,7 @@ void SmoothOperation::on_stroke_extended(const bContext &C, const InputSample &e curves.tag_radii_changed(); changed = true; } - if (sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_UV & context_type_ == 0) { + if ((sculpt_mode_flag & GP_SCULPT_FLAGMODE_APPLY_UV) & context_type_ == 0) { bke::SpanAttributeWriter rotations = attributes.lookup_or_add_for_write_span( "rotation", bke::AttrDomain::Point); geometry::smooth_curve_attribute(curves.curves_range(),