Cleanup: Remove extra whitespace in some sculpt helper methods

Pull Request: https://projects.blender.org/blender/blender/pulls/139041
This commit is contained in:
Sean Kim
2025-05-19 19:41:33 +02:00
committed by Sean Kim
parent 8f4ac59f7c
commit dc213cd79e

View File

@@ -824,7 +824,6 @@ static int sculpt_brush_needs_normal(const SculptSession &ss, const Brush &brush
SCULPT_BRUSH_TYPE_ROTATE,
SCULPT_BRUSH_TYPE_ELASTIC_DEFORM,
SCULPT_BRUSH_TYPE_THUMB) ||
(mask_tex->tex && mask_tex->brush_map_mode == MTEX_MAP_MODE_AREA)) ||
brush_uses_topology_rake(ss, brush) || BKE_brush_has_cube_tip(&brush, PaintMode::Sculpt);
}
@@ -854,14 +853,10 @@ bool stroke_is_dyntopo(const Object &object, const Brush &brush)
{
const SculptSession &ss = *object.sculpt;
const bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
return ((pbvh.type() == bke::pbvh::Type::BMesh) &&
(!ss.cache || (!ss.cache->alt_smooth)) &&
return ((pbvh.type() == bke::pbvh::Type::BMesh) && (!ss.cache || (!ss.cache->alt_smooth)) &&
/* Requires mesh restore, which doesn't work with
* dynamic-topology. */
!(brush.flag & BRUSH_ANCHORED) && !(brush.flag & BRUSH_DRAG_DOT) &&
bke::brush::supports_dyntopo(brush));
}