Cleanup: Remove unused sculpt_automask variables and functions
Pull Request: https://projects.blender.org/blender/blender/pulls/133223
This commit is contained in:
@@ -76,9 +76,6 @@ struct Cache {
|
||||
* \note -1 means the vertex value still needs to be calculated.
|
||||
*/
|
||||
Array<float> cavity_factor;
|
||||
|
||||
bool can_reuse_mask;
|
||||
uchar current_stroke_id;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -104,8 +101,6 @@ bool is_enabled(const Sculpt &sd, const Object &object, const Brush *br);
|
||||
|
||||
bool needs_normal(const SculptSession &ss, const Sculpt &sd, const Brush *brush);
|
||||
|
||||
bool brush_type_can_reuse_automask(int sculpt_brush_type);
|
||||
|
||||
/**
|
||||
* Calculate all auto-masking influence on each vertex.
|
||||
*/
|
||||
|
||||
@@ -1630,15 +1630,6 @@ static void normal_occlusion_automasking_fill(const Depsgraph &depsgraph,
|
||||
}
|
||||
}
|
||||
|
||||
bool brush_type_can_reuse_automask(int sculpt_brush_type)
|
||||
{
|
||||
return ELEM(sculpt_brush_type,
|
||||
SCULPT_BRUSH_TYPE_PAINT,
|
||||
SCULPT_BRUSH_TYPE_SMEAR,
|
||||
SCULPT_BRUSH_TYPE_MASK,
|
||||
SCULPT_BRUSH_TYPE_DRAW_FACE_SETS);
|
||||
}
|
||||
|
||||
std::unique_ptr<Cache> cache_init(const Depsgraph &depsgraph, const Sculpt &sd, Object &ob)
|
||||
{
|
||||
return cache_init(depsgraph, sd, nullptr, ob);
|
||||
|
||||
Reference in New Issue
Block a user