Cleanup: Rename NodeMaskResult to CursorSampleResult
Pull Request: https://projects.blender.org/blender/blender/pulls/137706
This commit is contained in:
@@ -25,7 +25,7 @@ class Node;
|
||||
namespace blender::ed::sculpt_paint::brushes {
|
||||
|
||||
/** Represents the result of one or more BVH queries to find a brush's affected nodes. */
|
||||
struct NodeMaskResult {
|
||||
struct CursorSampleResult {
|
||||
IndexMask node_mask;
|
||||
|
||||
/* For planar brushes, the plane center and normal are calculated based on the original cursor
|
||||
@@ -53,10 +53,10 @@ void do_clay_strips_brush(const Depsgraph &depsgraph,
|
||||
const float3 &plane_normal,
|
||||
const float3 &plane_center);
|
||||
namespace clay_strips {
|
||||
NodeMaskResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory);
|
||||
CursorSampleResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory);
|
||||
}
|
||||
void do_clay_thumb_brush(const Depsgraph &depsgraph,
|
||||
const Sculpt &sd,
|
||||
@@ -129,10 +129,10 @@ void do_plane_brush(const Depsgraph &depsgraph,
|
||||
const float3 &plane_center);
|
||||
|
||||
namespace plane {
|
||||
NodeMaskResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory);
|
||||
CursorSampleResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory);
|
||||
}
|
||||
|
||||
void do_grab_brush(const Depsgraph &depsgraph,
|
||||
|
||||
@@ -338,10 +338,10 @@ void do_clay_strips_brush(const Depsgraph &depsgraph,
|
||||
}
|
||||
|
||||
namespace clay_strips {
|
||||
NodeMaskResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &object,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
CursorSampleResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &object,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
{
|
||||
const bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
|
||||
const SculptSession &ss = *object.sculpt;
|
||||
|
||||
@@ -465,10 +465,10 @@ void do_plane_brush(const Depsgraph &depsgraph,
|
||||
}
|
||||
|
||||
namespace plane {
|
||||
NodeMaskResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
CursorSampleResult calc_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
{
|
||||
const SculptSession &ss = *ob.sculpt;
|
||||
const bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(ob);
|
||||
|
||||
@@ -3133,10 +3133,10 @@ static bool brush_type_needs_all_pbvh_nodes(const Brush &brush)
|
||||
}
|
||||
|
||||
/** Calculates the nodes that a brush will influence. */
|
||||
static brushes::NodeMaskResult calc_brush_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
static brushes::CursorSampleResult calc_brush_node_mask(const Depsgraph &depsgraph,
|
||||
Object &ob,
|
||||
const Brush &brush,
|
||||
IndexMaskMemory &memory)
|
||||
{
|
||||
const SculptSession &ss = *ob.sculpt;
|
||||
const bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(ob);
|
||||
@@ -3233,7 +3233,7 @@ static void do_brush_action(const Depsgraph &depsgraph,
|
||||
}
|
||||
}
|
||||
|
||||
const brushes::NodeMaskResult node_mask_result = calc_brush_node_mask(
|
||||
const brushes::CursorSampleResult node_mask_result = calc_brush_node_mask(
|
||||
depsgraph, ob, brush, memory);
|
||||
const IndexMask node_mask = node_mask_result.node_mask;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user